diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2016-09-24 12:57:18 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-09-27 11:46:03 -0400 |
commit | 1cc49a5b5466e30a26700af3ac9d85c8ebb1b936 (patch) | |
tree | de005ee6fc4c1ee3e70f1d6178dd48bb12dbcbbf /drivers/net | |
parent | ad5748893b27b9b27b2deb597443ad6702719c20 (diff) |
rtlwifi: Add HAL_DEF_WOWLAN case to *_get_hw() routines
Only rtl8821ae implements WOWLAN; however, the other drivers may receive
a call requesting information about this mode. The other drivers need to
ignore the request rather than logging that the default branch of the
switch statement has been reached.
Reported by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
7 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c index 3285117845f5..37d6efc3d240 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c | |||
@@ -355,6 +355,8 @@ void rtl88ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
355 | 355 | ||
356 | *((u64 *)(val)) = tsf; | 356 | *((u64 *)(val)) = tsf; |
357 | break; } | 357 | break; } |
358 | case HAL_DEF_WOWLAN: | ||
359 | break; | ||
358 | default: | 360 | default: |
359 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, | 361 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, |
360 | "switch case %#x not processed\n", variable); | 362 | "switch case %#x not processed\n", variable); |
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c index 6d308f9b7ff9..a47be73a0980 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c | |||
@@ -141,6 +141,8 @@ void rtl92ce_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
141 | 141 | ||
142 | break; | 142 | break; |
143 | } | 143 | } |
144 | case HAL_DEF_WOWLAN: | ||
145 | break; | ||
144 | default: | 146 | default: |
145 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, | 147 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, |
146 | "switch case %#x not processed\n", variable); | 148 | "switch case %#x not processed\n", variable); |
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c index 5369011914bb..d91f8bbfe7a0 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c | |||
@@ -164,6 +164,8 @@ void rtl92de_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
164 | case HW_VAR_INT_AC: | 164 | case HW_VAR_INT_AC: |
165 | *((bool *)(val)) = rtlpriv->dm.disable_tx_int; | 165 | *((bool *)(val)) = rtlpriv->dm.disable_tx_int; |
166 | break; | 166 | break; |
167 | case HAL_DEF_WOWLAN: | ||
168 | break; | ||
167 | default: | 169 | default: |
168 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, | 170 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, |
169 | "switch case %#x not processed\n", variable); | 171 | "switch case %#x not processed\n", variable); |
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c index 47bb6d8c8912..ebf663e1a81a 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c | |||
@@ -338,6 +338,8 @@ void rtl92ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
338 | *((u64 *)(val)) = tsf; | 338 | *((u64 *)(val)) = tsf; |
339 | } | 339 | } |
340 | break; | 340 | break; |
341 | case HAL_DEF_WOWLAN: | ||
342 | break; | ||
341 | default: | 343 | default: |
342 | RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG, | 344 | RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG, |
343 | "switch case %#x not processed\n", variable); | 345 | "switch case %#x not processed\n", variable); |
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c index 5bad9c9ef609..52e4430edb54 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c | |||
@@ -77,6 +77,8 @@ void rtl92se_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
77 | *((bool *)(val)) = rtlpriv->dm.current_mrc_switch; | 77 | *((bool *)(val)) = rtlpriv->dm.current_mrc_switch; |
78 | break; | 78 | break; |
79 | } | 79 | } |
80 | case HAL_DEF_WOWLAN: | ||
81 | break; | ||
80 | default: { | 82 | default: { |
81 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, | 83 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, |
82 | "switch case %#x not processed\n", variable); | 84 | "switch case %#x not processed\n", variable); |
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c index 2bf603b4e12c..f8be0bd7e326 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c | |||
@@ -141,6 +141,8 @@ void rtl8723e_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
141 | 141 | ||
142 | break; | 142 | break; |
143 | } | 143 | } |
144 | case HAL_DEF_WOWLAN: | ||
145 | break; | ||
144 | default: | 146 | default: |
145 | RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, | 147 | RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, |
146 | "switch case %#x not processed\n", variable); | 148 | "switch case %#x not processed\n", variable); |
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c index 999c1ac3ee57..aba60c3145c5 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c | |||
@@ -348,6 +348,8 @@ void rtl8723be_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
348 | *((u64 *)(val)) = tsf; | 348 | *((u64 *)(val)) = tsf; |
349 | } | 349 | } |
350 | break; | 350 | break; |
351 | case HAL_DEF_WOWLAN: | ||
352 | break; | ||
351 | default: | 353 | default: |
352 | RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, | 354 | RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, |
353 | "switch case %#x not processed\n", variable); | 355 | "switch case %#x not processed\n", variable); |