Skip to contentSkip to conversation

mac80211: set assoc flag to bss_conf

PATCH In review Tomas Winkler 2 participants 2 messages Jan 27, 2008 – Jan 29, 2008 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: set assoc flag to bss_conf

Only BSS_CHANGED_ASSOC was set in the 'changed' bitmask. Assignment to bss_conf.assoc was absent.
This patch assign value to bss_conf.assoc according the association state.

---
 net/mac80211/ieee80211_sta.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/mac80211/ieee80211_sta.c +1 -0
index d252d09..2c4692b 100644
@@ -492,6 +492,7 @@ static void ieee80211_set_associated(struct net_device *dev,
 	ifsta->last_probe = jiffies;
 	ieee80211_led_assoc(local, assoc);
 
+	sdata->bss_conf.assoc = assoc;
 	ieee80211_bss_info_change_notify(sdata, changed);
 }
 
Signature · 9 lines
1.5.2.2

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Tomas Winkler

Only BSS_CHANGED_ASSOC was set in the 'changed' bitmask. Assignment to bss_conf.assoc was absent.
This patch assign value to bss_conf.assoc according the association state.

Yup, looks like I missed that, thanks.

Quoted 1 line
Quoted 16 lines
---
 net/mac80211/ieee80211_sta.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/mac80211/ieee80211_sta.c +1 -0
index d252d09..2c4692b 100644
@@ -492,6 +492,7 @@ static void ieee80211_set_associated(struct net_device *dev,
 	ifsta->last_probe = jiffies;
 	ieee80211_led_assoc(local, assoc);
 
+	sdata->bss_conf.assoc = assoc;
 	ieee80211_bss_info_change_notify(sdata, changed);
 }