rtlwifi: Add HAL_DEF_WOWLAN case to *_get_hw() routines
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 24 Sep 2016 16:57:18 +0000 (11:57 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Sep 2016 15:46:03 +0000 (18:46 +0300)
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>
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c

index 3285117845f5b8e59b5fba7ee63983b785423e82..37d6efc3d240d267a179b04be3ea0207a64fb3cb 100644 (file)
@@ -355,6 +355,8 @@ void rtl88ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
 
                *((u64 *)(val)) = tsf;
                break; }
+       case HAL_DEF_WOWLAN:
+               break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
                         "switch case %#x not processed\n", variable);
index 6d308f9b7ff9ab32a9252a4a3de4a80465fa3b7f..a47be73a0980247269859d14b90031b53a765266 100644 (file)
@@ -141,6 +141,8 @@ void rtl92ce_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
 
                break;
                }
+       case HAL_DEF_WOWLAN:
+               break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
                         "switch case %#x not processed\n", variable);
index 5369011914bb145f0273466a156f6cdbe3105830..d91f8bbfe7a0799aba518625725a102305d7d219 100644 (file)
@@ -164,6 +164,8 @@ void rtl92de_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
        case HW_VAR_INT_AC:
                *((bool *)(val)) = rtlpriv->dm.disable_tx_int;
                break;
+       case HAL_DEF_WOWLAN:
+               break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
                         "switch case %#x not processed\n", variable);
index 47bb6d8c891277bfabace63d27ea03f9b19c183b..ebf663e1a81a0ab8a5613508b82690e623592822 100644 (file)
@@ -338,6 +338,8 @@ void rtl92ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                *((u64 *)(val)) = tsf;
                }
                break;
+       case HAL_DEF_WOWLAN:
+               break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
                         "switch case %#x not processed\n", variable);
index 5bad9c9ef609184983f5adaeb5001a83fe0a91aa..52e4430edb545624f3d15b612917d65b14cf67aa 100644 (file)
@@ -77,6 +77,8 @@ void rtl92se_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                        *((bool *)(val)) = rtlpriv->dm.current_mrc_switch;
                        break;
                }
+       case HAL_DEF_WOWLAN:
+               break;
        default: {
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
                         "switch case %#x not processed\n", variable);
index 2bf603b4e12cd0014224deac20c225491a15c21f..f8be0bd7e3269c128f226a53fdc4535256faf85e 100644 (file)
@@ -141,6 +141,8 @@ void rtl8723e_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
 
                        break;
                }
+       case HAL_DEF_WOWLAN:
+               break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
                         "switch case %#x not processed\n", variable);
index 999c1ac3ee574ee1a9a2bc3764d78e1aeb13fb97..aba60c3145c5f6f60b5e34cdbc7885d3042ae2f8 100644 (file)
@@ -348,6 +348,8 @@ void rtl8723be_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                *((u64 *)(val)) = tsf;
                }
                break;
+       case HAL_DEF_WOWLAN:
+               break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD,
                         "switch case %#x not processed\n", variable);