forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
3195c1f349
commit
5d6924eaf0
|
@ -63,13 +63,13 @@ struct hwsim_sta_priv {
|
|||
static inline void hwsim_check_sta_magic(struct ieee80211_sta *sta)
|
||||
{
|
||||
struct hwsim_sta_priv *sp = (void *)sta->drv_priv;
|
||||
WARN_ON(sp->magic != HWSIM_VIF_MAGIC);
|
||||
WARN_ON(sp->magic != HWSIM_STA_MAGIC);
|
||||
}
|
||||
|
||||
static inline void hwsim_set_sta_magic(struct ieee80211_sta *sta)
|
||||
{
|
||||
struct hwsim_sta_priv *sp = (void *)sta->drv_priv;
|
||||
sp->magic = HWSIM_VIF_MAGIC;
|
||||
sp->magic = HWSIM_STA_MAGIC;
|
||||
}
|
||||
|
||||
static inline void hwsim_clear_sta_magic(struct ieee80211_sta *sta)
|
||||
|
|
Loading…
Reference in New Issue
Block a user