Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290013
b: refs/heads/master
c: 2ed8171
h: refs/heads/master
i:
  290011: 02b35aa
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jan 30, 2012
1 parent e4abc17 commit 43dc625
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dcc3ec04c14d6d840fdcc5be0ddd752a7daf7ec4
refs/heads/master: 2ed81710ccc0ccebe177481b8d4ac584f9c2b569
21 changes: 18 additions & 3 deletions trunk/drivers/net/wireless/iwlwifi/iwl-scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,25 @@ static u16 iwl_limit_dwell(struct iwl_priv *priv, u16 dwell_time)
for_each_context(priv, ctx) {
u16 value;

if (!iwl_is_associated_ctx(ctx))
continue;
if (ctx->staging.dev_type == RXON_DEV_TYPE_P2P)
switch (ctx->staging.dev_type) {
case RXON_DEV_TYPE_P2P:
/* no timing constraints */
continue;
case RXON_DEV_TYPE_ESS:
default:
/* timing constraints if associated */
if (!iwl_is_associated_ctx(ctx))
continue;
break;
case RXON_DEV_TYPE_CP:
case RXON_DEV_TYPE_2STA:
/*
* These seem to always have timers for TBTT
* active in uCode even when not associated yet.
*/
break;
}

value = ctx->beacon_int;
if (!value)
value = IWL_PASSIVE_DWELL_BASE;
Expand Down

0 comments on commit 43dc625

Please sign in to comment.