diff options
Diffstat (limited to 'net/wireless/core.h')
| -rw-r--r-- | net/wireless/core.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h index 4ef3efc94106..d52da913145a 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Wireless configuration interface internals. | 2 | * Wireless configuration interface internals. |
| 3 | * | 3 | * |
| 4 | * Copyright 2006-2009 Johannes Berg <johannes@sipsolutions.net> | 4 | * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> |
| 5 | */ | 5 | */ |
| 6 | #ifndef __NET_WIRELESS_CORE_H | 6 | #ifndef __NET_WIRELESS_CORE_H |
| 7 | #define __NET_WIRELESS_CORE_H | 7 | #define __NET_WIRELESS_CORE_H |
| @@ -48,6 +48,7 @@ struct cfg80211_registered_device { | |||
| 48 | 48 | ||
| 49 | /* associate netdev list */ | 49 | /* associate netdev list */ |
| 50 | struct mutex devlist_mtx; | 50 | struct mutex devlist_mtx; |
| 51 | /* protected by devlist_mtx or RCU */ | ||
| 51 | struct list_head netdev_list; | 52 | struct list_head netdev_list; |
| 52 | int devlist_generation; | 53 | int devlist_generation; |
| 53 | int opencount; /* also protected by devlist_mtx */ | 54 | int opencount; /* also protected by devlist_mtx */ |
| @@ -111,7 +112,8 @@ struct cfg80211_internal_bss { | |||
| 111 | unsigned long ts; | 112 | unsigned long ts; |
| 112 | struct kref ref; | 113 | struct kref ref; |
| 113 | atomic_t hold; | 114 | atomic_t hold; |
| 114 | bool ies_allocated; | 115 | bool beacon_ies_allocated; |
| 116 | bool proberesp_ies_allocated; | ||
| 115 | 117 | ||
| 116 | /* must be last because of priv member */ | 118 | /* must be last because of priv member */ |
| 117 | struct cfg80211_bss pub; | 119 | struct cfg80211_bss pub; |
| @@ -327,6 +329,15 @@ void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid, | |||
| 327 | const u8 *resp_ie, size_t resp_ie_len, | 329 | const u8 *resp_ie, size_t resp_ie_len, |
| 328 | u16 status, bool wextev, | 330 | u16 status, bool wextev, |
| 329 | struct cfg80211_bss *bss); | 331 | struct cfg80211_bss *bss); |
| 332 | int cfg80211_mlme_register_action(struct wireless_dev *wdev, u32 snd_pid, | ||
| 333 | const u8 *match_data, int match_len); | ||
| 334 | void cfg80211_mlme_unregister_actions(struct wireless_dev *wdev, u32 nlpid); | ||
| 335 | void cfg80211_mlme_purge_actions(struct wireless_dev *wdev); | ||
| 336 | int cfg80211_mlme_action(struct cfg80211_registered_device *rdev, | ||
| 337 | struct net_device *dev, | ||
| 338 | struct ieee80211_channel *chan, | ||
| 339 | enum nl80211_channel_type channel_type, | ||
| 340 | const u8 *buf, size_t len, u64 *cookie); | ||
| 330 | 341 | ||
| 331 | /* SME */ | 342 | /* SME */ |
| 332 | int __cfg80211_connect(struct cfg80211_registered_device *rdev, | 343 | int __cfg80211_connect(struct cfg80211_registered_device *rdev, |
| @@ -374,10 +385,15 @@ void cfg80211_process_rdev_events(struct cfg80211_registered_device *rdev); | |||
| 374 | struct ieee80211_channel * | 385 | struct ieee80211_channel * |
| 375 | rdev_fixed_channel(struct cfg80211_registered_device *rdev, | 386 | rdev_fixed_channel(struct cfg80211_registered_device *rdev, |
| 376 | struct wireless_dev *for_wdev); | 387 | struct wireless_dev *for_wdev); |
| 388 | struct ieee80211_channel * | ||
| 389 | rdev_freq_to_chan(struct cfg80211_registered_device *rdev, | ||
| 390 | int freq, enum nl80211_channel_type channel_type); | ||
| 377 | int rdev_set_freq(struct cfg80211_registered_device *rdev, | 391 | int rdev_set_freq(struct cfg80211_registered_device *rdev, |
| 378 | struct wireless_dev *for_wdev, | 392 | struct wireless_dev *for_wdev, |
| 379 | int freq, enum nl80211_channel_type channel_type); | 393 | int freq, enum nl80211_channel_type channel_type); |
| 380 | 394 | ||
| 395 | u16 cfg80211_calculate_bitrate(struct rate_info *rate); | ||
| 396 | |||
| 381 | #ifdef CONFIG_CFG80211_DEVELOPER_WARNINGS | 397 | #ifdef CONFIG_CFG80211_DEVELOPER_WARNINGS |
| 382 | #define CFG80211_DEV_WARN_ON(cond) WARN_ON(cond) | 398 | #define CFG80211_DEV_WARN_ON(cond) WARN_ON(cond) |
| 383 | #else | 399 | #else |
