diff options
author | Rami Rosen <ramirose@gmail.com> | 2008-10-08 05:18:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:04 -0400 |
commit | 5d6924eaf07bec9ce7527cad9d2537e448574738 (patch) | |
tree | 4359a86e6b422e67e35d62e8ea442769a2a4f163 /drivers/net/wireless/mac80211_hwsim.c | |
parent | 3195c1f3499912b207ae600968488759b16037fc (diff) |
mac80211: use HWSIM_STA_MAGIC in hwsim_check_sta_magic() and hwsim_set_sta_magic().
This patch fixes a typo in mac80211_hwsim.c:
use HWSIM_STA_MAGIC in hwsim_check_sta_magic() and hwsim_set_sta_magic()
instead of HWSIM_VIF_MAGIC.
Signed-off-by: Rami Rosen <ramirose@gmail.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 88c5eec0607c..e23d9a52d083 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -63,13 +63,13 @@ struct hwsim_sta_priv { | |||
63 | static inline void hwsim_check_sta_magic(struct ieee80211_sta *sta) | 63 | static inline void hwsim_check_sta_magic(struct ieee80211_sta *sta) |
64 | { | 64 | { |
65 | struct hwsim_sta_priv *sp = (void *)sta->drv_priv; | 65 | struct hwsim_sta_priv *sp = (void *)sta->drv_priv; |
66 | WARN_ON(sp->magic != HWSIM_VIF_MAGIC); | 66 | WARN_ON(sp->magic != HWSIM_STA_MAGIC); |
67 | } | 67 | } |
68 | 68 | ||
69 | static inline void hwsim_set_sta_magic(struct ieee80211_sta *sta) | 69 | static inline void hwsim_set_sta_magic(struct ieee80211_sta *sta) |
70 | { | 70 | { |
71 | struct hwsim_sta_priv *sp = (void *)sta->drv_priv; | 71 | struct hwsim_sta_priv *sp = (void *)sta->drv_priv; |
72 | sp->magic = HWSIM_VIF_MAGIC; | 72 | sp->magic = HWSIM_STA_MAGIC; |
73 | } | 73 | } |
74 | 74 | ||
75 | static inline void hwsim_clear_sta_magic(struct ieee80211_sta *sta) | 75 | static inline void hwsim_clear_sta_magic(struct ieee80211_sta *sta) |