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)
commitc8abbe79cce67f201bbbe8ce797476fdc96a80f4
tree620d0e1105b79e205f298e2cb9106ce0949838af
parenta3fa3669d18c959c265eda2048b998c0062a61ce
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