diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-06 21:45:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:30 -0400 |
commit | 77fdaa12cea26c204cc12c312fe40bc0f3dcdfd8 (patch) | |
tree | c28fdd28f2ca2783783adb4b5e13b7ba57a223a3 /net/mac80211/debugfs_netdev.c | |
parent | a7c1cfc9616ee76213a6d4fd4c17f13fdc92ddce (diff) |
mac80211: rework MLME for multiple authentications
Sit tight. This shakes up the world as you know
it. Let go of your spaghetti tongs, they will no
longer be required, the horrible statemachine in
net/mac80211/mlme.c is no more...
With the cfg80211 SME mac80211 now has much less
to keep track of, but, on the other hand, for FT
it needs to be able to keep track of at least one
authentication being in progress while associated.
So convert from a single state machine to having
small ones for all the different things we need to
do. For real FT it will still need work wrt. PS,
but this should be a good step.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/debugfs_netdev.c')
-rw-r--r-- | net/mac80211/debugfs_netdev.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index 4c541f0f325f..e9ec6cae2d39 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c | |||
@@ -95,29 +95,9 @@ IEEE80211_IF_FILE(force_unicast_rateidx, force_unicast_rateidx, DEC); | |||
95 | IEEE80211_IF_FILE(max_ratectrl_rateidx, max_ratectrl_rateidx, DEC); | 95 | IEEE80211_IF_FILE(max_ratectrl_rateidx, max_ratectrl_rateidx, DEC); |
96 | 96 | ||
97 | /* STA attributes */ | 97 | /* STA attributes */ |
98 | IEEE80211_IF_FILE(state, u.mgd.state, DEC); | ||
99 | IEEE80211_IF_FILE(bssid, u.mgd.bssid, MAC); | 98 | IEEE80211_IF_FILE(bssid, u.mgd.bssid, MAC); |
100 | IEEE80211_IF_FILE(prev_bssid, u.mgd.prev_bssid, MAC); | ||
101 | IEEE80211_IF_FILE(ssid_len, u.mgd.ssid_len, SIZE); | ||
102 | IEEE80211_IF_FILE(aid, u.mgd.aid, DEC); | 99 | IEEE80211_IF_FILE(aid, u.mgd.aid, DEC); |
103 | IEEE80211_IF_FILE(capab, u.mgd.capab, HEX); | 100 | IEEE80211_IF_FILE(capab, u.mgd.capab, HEX); |
104 | IEEE80211_IF_FILE(extra_ie_len, u.mgd.extra_ie_len, SIZE); | ||
105 | IEEE80211_IF_FILE(auth_tries, u.mgd.auth_tries, DEC); | ||
106 | IEEE80211_IF_FILE(assoc_tries, u.mgd.assoc_tries, DEC); | ||
107 | IEEE80211_IF_FILE(auth_alg, u.mgd.auth_alg, DEC); | ||
108 | IEEE80211_IF_FILE(auth_transaction, u.mgd.auth_transaction, DEC); | ||
109 | |||
110 | static ssize_t ieee80211_if_fmt_flags( | ||
111 | const struct ieee80211_sub_if_data *sdata, char *buf, int buflen) | ||
112 | { | ||
113 | return scnprintf(buf, buflen, "%s%s%s%s%s\n", | ||
114 | sdata->u.mgd.flags & IEEE80211_STA_PREV_BSSID_SET ? "prev BSSID\n" : "", | ||
115 | sdata->u.mgd.flags & IEEE80211_STA_AUTHENTICATED ? "AUTH\n" : "", | ||
116 | sdata->u.mgd.flags & IEEE80211_STA_ASSOCIATED ? "ASSOC\n" : "", | ||
117 | sdata->u.mgd.flags & IEEE80211_STA_PROBEREQ_POLL ? "PROBEREQ POLL\n" : "", | ||
118 | sdata->vif.bss_conf.use_cts_prot ? "CTS prot\n" : ""); | ||
119 | } | ||
120 | __IEEE80211_IF_FILE(flags); | ||
121 | 101 | ||
122 | /* AP attributes */ | 102 | /* AP attributes */ |
123 | IEEE80211_IF_FILE(num_sta_ps, u.ap.num_sta_ps, ATOMIC); | 103 | IEEE80211_IF_FILE(num_sta_ps, u.ap.num_sta_ps, ATOMIC); |
@@ -180,18 +160,9 @@ static void add_sta_files(struct ieee80211_sub_if_data *sdata) | |||
180 | DEBUGFS_ADD(force_unicast_rateidx, sta); | 160 | DEBUGFS_ADD(force_unicast_rateidx, sta); |
181 | DEBUGFS_ADD(max_ratectrl_rateidx, sta); | 161 | DEBUGFS_ADD(max_ratectrl_rateidx, sta); |
182 | 162 | ||
183 | DEBUGFS_ADD(state, sta); | ||
184 | DEBUGFS_ADD(bssid, sta); | 163 | DEBUGFS_ADD(bssid, sta); |
185 | DEBUGFS_ADD(prev_bssid, sta); | ||
186 | DEBUGFS_ADD(ssid_len, sta); | ||
187 | DEBUGFS_ADD(aid, sta); | 164 | DEBUGFS_ADD(aid, sta); |
188 | DEBUGFS_ADD(capab, sta); | 165 | DEBUGFS_ADD(capab, sta); |
189 | DEBUGFS_ADD(extra_ie_len, sta); | ||
190 | DEBUGFS_ADD(auth_tries, sta); | ||
191 | DEBUGFS_ADD(assoc_tries, sta); | ||
192 | DEBUGFS_ADD(auth_alg, sta); | ||
193 | DEBUGFS_ADD(auth_transaction, sta); | ||
194 | DEBUGFS_ADD(flags, sta); | ||
195 | } | 166 | } |
196 | 167 | ||
197 | static void add_ap_files(struct ieee80211_sub_if_data *sdata) | 168 | static void add_ap_files(struct ieee80211_sub_if_data *sdata) |
@@ -311,18 +282,9 @@ static void del_sta_files(struct ieee80211_sub_if_data *sdata) | |||
311 | DEBUGFS_DEL(force_unicast_rateidx, sta); | 282 | DEBUGFS_DEL(force_unicast_rateidx, sta); |
312 | DEBUGFS_DEL(max_ratectrl_rateidx, sta); | 283 | DEBUGFS_DEL(max_ratectrl_rateidx, sta); |
313 | 284 | ||
314 | DEBUGFS_DEL(state, sta); | ||
315 | DEBUGFS_DEL(bssid, sta); | 285 | DEBUGFS_DEL(bssid, sta); |
316 | DEBUGFS_DEL(prev_bssid, sta); | ||
317 | DEBUGFS_DEL(ssid_len, sta); | ||
318 | DEBUGFS_DEL(aid, sta); | 286 | DEBUGFS_DEL(aid, sta); |
319 | DEBUGFS_DEL(capab, sta); | 287 | DEBUGFS_DEL(capab, sta); |
320 | DEBUGFS_DEL(extra_ie_len, sta); | ||
321 | DEBUGFS_DEL(auth_tries, sta); | ||
322 | DEBUGFS_DEL(assoc_tries, sta); | ||
323 | DEBUGFS_DEL(auth_alg, sta); | ||
324 | DEBUGFS_DEL(auth_transaction, sta); | ||
325 | DEBUGFS_DEL(flags, sta); | ||
326 | } | 288 | } |
327 | 289 | ||
328 | static void del_ap_files(struct ieee80211_sub_if_data *sdata) | 290 | static void del_ap_files(struct ieee80211_sub_if_data *sdata) |