Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290301
b: refs/heads/master
c: 4c7d2fe
h: refs/heads/master
i:
  290299: 3e5b0bd
v: v3
  • Loading branch information
Johannes Berg authored and Wey-Yi Guy committed Jan 28, 2012
1 parent f8591af commit cb42a02
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: 42602dd419177b0de1b1093a420399132ed75ca6
refs/heads/master: 4c7d2fe9b116f749bc8362da33a628d6654e42b4
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 cb42a02

Please sign in to comment.