]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: fix scan channel 1 fail after IPS
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 17 Jan 2018 06:15:22 +0000 (14:15 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 17 Jan 2018 15:09:10 +0000 (17:09 +0200)
commita85ee35bc3059150b91914fdf538c5e77a79dab2
tree620d0e1105b79e205f298e2cb9106ce0949838af
parent17f9a4796785ad7515003641dcc737bbb40ac6f5
rtlwifi: fix scan channel 1 fail after IPS

If there is no connection, driver will enter IPS state. Meanwhile, it
fails to scan channel 1 by the command 'iw dev wlan0 scan freq 2412',
because hardware channel setting lose after IPS. Thus, restore channel
setting from hw->conf.channel set by last rtl_op_config().

Signed-off-by: Tim Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/ps.c