aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/core.h')
-rw-r--r--net/wireless/core.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h
index d52da913145a..ae930acf75e9 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -70,9 +70,6 @@ struct cfg80211_registered_device {
70 struct work_struct conn_work; 70 struct work_struct conn_work;
71 struct work_struct event_work; 71 struct work_struct event_work;
72 72
73 /* current channel */
74 struct ieee80211_channel *channel;
75
76 /* must be last because of the way we do wiphy_priv(), 73 /* must be last because of the way we do wiphy_priv(),
77 * and it should at least be aligned to NETDEV_ALIGN */ 74 * and it should at least be aligned to NETDEV_ALIGN */
78 struct wiphy wiphy __attribute__((__aligned__(NETDEV_ALIGN))); 75 struct wiphy wiphy __attribute__((__aligned__(NETDEV_ALIGN)));
@@ -293,13 +290,15 @@ int __cfg80211_mlme_auth(struct cfg80211_registered_device *rdev,
293 const u8 *bssid, 290 const u8 *bssid,
294 const u8 *ssid, int ssid_len, 291 const u8 *ssid, int ssid_len,
295 const u8 *ie, int ie_len, 292 const u8 *ie, int ie_len,
296 const u8 *key, int key_len, int key_idx); 293 const u8 *key, int key_len, int key_idx,
294 bool local_state_change);
297int cfg80211_mlme_auth(struct cfg80211_registered_device *rdev, 295int cfg80211_mlme_auth(struct cfg80211_registered_device *rdev,
298 struct net_device *dev, struct ieee80211_channel *chan, 296 struct net_device *dev, struct ieee80211_channel *chan,
299 enum nl80211_auth_type auth_type, const u8 *bssid, 297 enum nl80211_auth_type auth_type, const u8 *bssid,
300 const u8 *ssid, int ssid_len, 298 const u8 *ssid, int ssid_len,
301 const u8 *ie, int ie_len, 299 const u8 *ie, int ie_len,
302 const u8 *key, int key_len, int key_idx); 300 const u8 *key, int key_len, int key_idx,
301 bool local_state_change);
303int __cfg80211_mlme_assoc(struct cfg80211_registered_device *rdev, 302int __cfg80211_mlme_assoc(struct cfg80211_registered_device *rdev,
304 struct net_device *dev, 303 struct net_device *dev,
305 struct ieee80211_channel *chan, 304 struct ieee80211_channel *chan,
@@ -315,13 +314,16 @@ int cfg80211_mlme_assoc(struct cfg80211_registered_device *rdev,
315 struct cfg80211_crypto_settings *crypt); 314 struct cfg80211_crypto_settings *crypt);
316int __cfg80211_mlme_deauth(struct cfg80211_registered_device *rdev, 315int __cfg80211_mlme_deauth(struct cfg80211_registered_device *rdev,
317 struct net_device *dev, const u8 *bssid, 316 struct net_device *dev, const u8 *bssid,
318 const u8 *ie, int ie_len, u16 reason); 317 const u8 *ie, int ie_len, u16 reason,
318 bool local_state_change);
319int cfg80211_mlme_deauth(struct cfg80211_registered_device *rdev, 319int cfg80211_mlme_deauth(struct cfg80211_registered_device *rdev,
320 struct net_device *dev, const u8 *bssid, 320 struct net_device *dev, const u8 *bssid,
321 const u8 *ie, int ie_len, u16 reason); 321 const u8 *ie, int ie_len, u16 reason,
322 bool local_state_change);
322int cfg80211_mlme_disassoc(struct cfg80211_registered_device *rdev, 323int cfg80211_mlme_disassoc(struct cfg80211_registered_device *rdev,
323 struct net_device *dev, const u8 *bssid, 324 struct net_device *dev, const u8 *bssid,
324 const u8 *ie, int ie_len, u16 reason); 325 const u8 *ie, int ie_len, u16 reason,
326 bool local_state_change);
325void cfg80211_mlme_down(struct cfg80211_registered_device *rdev, 327void cfg80211_mlme_down(struct cfg80211_registered_device *rdev,
326 struct net_device *dev); 328 struct net_device *dev);
327void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid, 329void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid,
@@ -383,14 +385,11 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev,
383void cfg80211_process_rdev_events(struct cfg80211_registered_device *rdev); 385void cfg80211_process_rdev_events(struct cfg80211_registered_device *rdev);
384 386
385struct ieee80211_channel * 387struct ieee80211_channel *
386rdev_fixed_channel(struct cfg80211_registered_device *rdev,
387 struct wireless_dev *for_wdev);
388struct ieee80211_channel *
389rdev_freq_to_chan(struct cfg80211_registered_device *rdev, 388rdev_freq_to_chan(struct cfg80211_registered_device *rdev,
390 int freq, enum nl80211_channel_type channel_type); 389 int freq, enum nl80211_channel_type channel_type);
391int rdev_set_freq(struct cfg80211_registered_device *rdev, 390int cfg80211_set_freq(struct cfg80211_registered_device *rdev,
392 struct wireless_dev *for_wdev, 391 struct wireless_dev *wdev, int freq,
393 int freq, enum nl80211_channel_type channel_type); 392 enum nl80211_channel_type channel_type);
394 393
395u16 cfg80211_calculate_bitrate(struct rate_info *rate); 394u16 cfg80211_calculate_bitrate(struct rate_info *rate);
396 395