diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-19 13:57:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:57:17 -0400 |
commit | 691597cb26f236ac7471f1adf925a134c86799d6 (patch) | |
tree | e89d91e496af082711b7c0789aaf0a985e7ba964 /net/mac80211/cfg.c | |
parent | d726405af6c8c81d2ee5e6a29301c68b9d4c574f (diff) |
cfg80211/mac80211: move wext SIWMLME into cfg80211
Since we have ->deauth and ->disassoc we can support the
wext SIWMLME call directly without driver wext handlers.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 520efa8a0791..daf75287e92a 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1268,22 +1268,18 @@ static int ieee80211_assoc(struct wiphy *wiphy, struct net_device *dev, | |||
1268 | static int ieee80211_deauth(struct wiphy *wiphy, struct net_device *dev, | 1268 | static int ieee80211_deauth(struct wiphy *wiphy, struct net_device *dev, |
1269 | struct cfg80211_deauth_request *req) | 1269 | struct cfg80211_deauth_request *req) |
1270 | { | 1270 | { |
1271 | struct ieee80211_sub_if_data *sdata; | 1271 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
1272 | |||
1273 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); | ||
1274 | 1272 | ||
1275 | /* TODO: req->ie */ | 1273 | /* TODO: req->ie, req->peer_addr */ |
1276 | return ieee80211_sta_deauthenticate(sdata, req->reason_code); | 1274 | return ieee80211_sta_deauthenticate(sdata, req->reason_code); |
1277 | } | 1275 | } |
1278 | 1276 | ||
1279 | static int ieee80211_disassoc(struct wiphy *wiphy, struct net_device *dev, | 1277 | static int ieee80211_disassoc(struct wiphy *wiphy, struct net_device *dev, |
1280 | struct cfg80211_disassoc_request *req) | 1278 | struct cfg80211_disassoc_request *req) |
1281 | { | 1279 | { |
1282 | struct ieee80211_sub_if_data *sdata; | 1280 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
1283 | |||
1284 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); | ||
1285 | 1281 | ||
1286 | /* TODO: req->ie */ | 1282 | /* TODO: req->ie, req->peer_addr */ |
1287 | return ieee80211_sta_disassociate(sdata, req->reason_code); | 1283 | return ieee80211_sta_disassociate(sdata, req->reason_code); |
1288 | } | 1284 | } |
1289 | 1285 | ||