]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: set max_out_time equal to frag_passive_dwell in fragmented scan
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Thu, 18 Dec 2014 10:34:01 +0000 (12:34 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 22 Jan 2015 15:53:59 +0000 (17:53 +0200)
commit5998617143a9c8a0cc540f7b8dba620c698244e7
tree00ce7471f24c971d1f7b6c08316d491d8f76a4ca
parent43cfcf141f86f86e48841e2adb92cfece70bf6d4
iwlwifi: mvm: set max_out_time equal to frag_passive_dwell in fragmented scan

Fragmented scan should be applied for all channels, passive and active.
When scanning on passive channels the firmware uses frag_passive_dwell
to define the maximum continuous scan time before returning to the
operating channel. On active channels max_out_time is the parameter
used by the firmware to define the maximum time allowed out of the
operating channel. Since active channels' scan should also be fragmented
set max_out_time equal to frag_passive_dwell.
In addition:
- Set max_out_time and suspend_time if the firmware doesn't support
  fragmented scan to avoid unexpected behavior.
- Adjust max_out_time for second level of scan precedence.

Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Reviewed-by: Alexander Bondar <alexander.bondar@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c