2008-11-28 22:45:50

by Christian Lamparter

[permalink] [raw]
Subject: [PATCH 2/3] mac80211_hwsim: add trivial switch cases

This patch fixes the following warnings:

In function =E2=80=98mac80211_hwsim_sta_notify=E2=80=99:
warning: enumeration value =E2=80=98STA_NOTIFY_SLEEP=E2=80=99 not handl=
ed in switch
warning: enumeration value =E2=80=98STA_NOTIFY_AWAKE=E2=80=99 not handl=
ed in switch

Signed-off-by: Christian Lamparter <[email protected]>
---
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wirele=
ss/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 ieee8=
0211_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;
}
}
=20