This patch fixes the following warnings: In function ‘mac80211_hwsim_sta_notify’: warning: enumeration value ‘STA_NOTIFY_SLEEP’ not handled in switch warning: enumeration value ‘STA_NOTIFY_AWAKE’ not handled in switch Signed-off-by: Christian Lamparter <chunkeey@xxxxxx> --- diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index f43da1c..e2c50ed 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -524,6 +524,10 @@ static void mac80211_hwsim_sta_notify(struct ieee80211_hw *hw, case STA_NOTIFY_REMOVE: hwsim_clear_sta_magic(sta); break; + case STA_NOTIFY_AWAKE: + case STA_NOTIFY_SLEEP: + /* TODO: make good use of these callbacks */ + break; } } -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html