iwlwifi: always restrict scan dwell in P2P
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Jan 2012 13:39:19 +0000 (14:39 +0100)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 28 Jan 2012 16:08:28 +0000 (08:08 -0800)
commit4c7d2fe9b116f749bc8362da33a628d6654e42b4
treea5d31c127701da195558f1c4dc5866f1fe8eedf3
parent42602dd419177b0de1b1093a420399132ed75ca6
iwlwifi: always restrict scan dwell in P2P

Whenever the PAN (P2P) context is active, it
has timers in the uCode that prevent sleep,
so scanning can't be out of channel for more
than the beacon interval programmed into the
device.

Before this patch, a full scan including any
passive channels when P2P was active would
stall forever because it wouldn't find time
to execute the passive requests (for default
beacon intervals of 100 TU.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-scan.c