diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-02-15 06:44:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:51:42 -0500 |
commit | 469002983fc90c2ff0959e2b03335c0fe2e4d5a9 (patch) | |
tree | fdcf78dcdaeadba897abd86d39d0275e236803b3 /net/mac80211/ht.c | |
parent | 96f5e66e8a79810e2982cdcfa28e554f3d97da21 (diff) |
mac80211: split IBSS/managed code
This patch splits out the ibss code and data from managed (station) mode.
The reason to do this is to better separate the state machines, and have
the code be contained better so it gets easier to determine what exactly
a given change will affect, that in turn makes it easier to understand.
This is quite some churn, especially because I split sdata->u.sta into
sdata->u.mgd and sdata->u.ibss, but I think it's easier to maintain that
way. I've also shuffled around some code -- null function sending is only
applicable to managed interfaces so put that into that file, some other
functions are needed from various places so put them into util, and also
rearranged the prototypes in ieee80211_i.h accordingly.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ht.c')
-rw-r--r-- | net/mac80211/ht.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c index 82ea0b63a38..69b6e9a4df3 100644 --- a/net/mac80211/ht.c +++ b/net/mac80211/ht.c | |||
@@ -169,7 +169,6 @@ void ieee80211_send_delba(struct ieee80211_sub_if_data *sdata, | |||
169 | u16 initiator, u16 reason_code) | 169 | u16 initiator, u16 reason_code) |
170 | { | 170 | { |
171 | struct ieee80211_local *local = sdata->local; | 171 | struct ieee80211_local *local = sdata->local; |
172 | struct ieee80211_if_sta *ifsta = &sdata->u.sta; | ||
173 | struct sk_buff *skb; | 172 | struct sk_buff *skb; |
174 | struct ieee80211_mgmt *mgmt; | 173 | struct ieee80211_mgmt *mgmt; |
175 | u16 params; | 174 | u16 params; |
@@ -190,8 +189,9 @@ void ieee80211_send_delba(struct ieee80211_sub_if_data *sdata, | |||
190 | if (sdata->vif.type == NL80211_IFTYPE_AP || | 189 | if (sdata->vif.type == NL80211_IFTYPE_AP || |
191 | sdata->vif.type == NL80211_IFTYPE_AP_VLAN) | 190 | sdata->vif.type == NL80211_IFTYPE_AP_VLAN) |
192 | memcpy(mgmt->bssid, sdata->dev->dev_addr, ETH_ALEN); | 191 | memcpy(mgmt->bssid, sdata->dev->dev_addr, ETH_ALEN); |
193 | else | 192 | else if (sdata->vif.type == NL80211_IFTYPE_STATION) |
194 | memcpy(mgmt->bssid, ifsta->bssid, ETH_ALEN); | 193 | memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); |
194 | |||
195 | mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | | 195 | mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | |
196 | IEEE80211_STYPE_ACTION); | 196 | IEEE80211_STYPE_ACTION); |
197 | 197 | ||