]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: rework sched scan channel configuration
authorEliad Peller <eliad@wizery.com>
Mon, 26 May 2014 15:44:35 +0000 (18:44 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 24 Jun 2014 11:30:56 +0000 (14:30 +0300)
commit3803a9d9207989bd0addbc96c75143c9c6fe7444
tree63b691bca840f94d12ced961903e657f8d8a2e91
parent081ef54181a1ff0d2c7e189052277797ff8dd0dd
iwlwifi: mvm: rework sched scan channel configuration

The current sched scan channel configuration code
configures all the supported channels for scanning.

However, this can result in SYSASSERT in some cases,
when the configured channel is disabled.

Instead, configure only the channels given in the
req struct, and set the channel_count field appropriately.

While on it, change the code to use channel->hw_value
instead of recalculating the channel number.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/scan.c