diff options
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 | ||