diff options
Diffstat (limited to 'net/wireless/core.h')
-rw-r--r-- | net/wireless/core.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/net/wireless/core.h b/net/wireless/core.h index f565432ae22f..2a33d8bc886b 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h | |||
@@ -370,8 +370,12 @@ void cfg80211_sme_scan_done(struct net_device *dev); | |||
370 | void cfg80211_sme_rx_auth(struct net_device *dev, const u8 *buf, size_t len); | 370 | void cfg80211_sme_rx_auth(struct net_device *dev, const u8 *buf, size_t len); |
371 | void cfg80211_sme_disassoc(struct net_device *dev, int idx); | 371 | void cfg80211_sme_disassoc(struct net_device *dev, int idx); |
372 | void __cfg80211_scan_done(struct work_struct *wk); | 372 | void __cfg80211_scan_done(struct work_struct *wk); |
373 | void ___cfg80211_scan_done(struct cfg80211_registered_device *rdev); | 373 | void ___cfg80211_scan_done(struct cfg80211_registered_device *rdev, bool leak); |
374 | void cfg80211_upload_connect_keys(struct wireless_dev *wdev); | 374 | void cfg80211_upload_connect_keys(struct wireless_dev *wdev); |
375 | int cfg80211_change_iface(struct cfg80211_registered_device *rdev, | ||
376 | struct net_device *dev, enum nl80211_iftype ntype, | ||
377 | u32 *flags, struct vif_params *params); | ||
378 | void cfg80211_process_rdev_events(struct cfg80211_registered_device *rdev); | ||
375 | 379 | ||
376 | struct ieee80211_channel * | 380 | struct ieee80211_channel * |
377 | rdev_fixed_channel(struct cfg80211_registered_device *rdev, | 381 | rdev_fixed_channel(struct cfg80211_registered_device *rdev, |
@@ -380,4 +384,15 @@ int rdev_set_freq(struct cfg80211_registered_device *rdev, | |||
380 | struct wireless_dev *for_wdev, | 384 | struct wireless_dev *for_wdev, |
381 | int freq, enum nl80211_channel_type channel_type); | 385 | int freq, enum nl80211_channel_type channel_type); |
382 | 386 | ||
387 | #ifdef CONFIG_CFG80211_DEVELOPER_WARNINGS | ||
388 | #define CFG80211_DEV_WARN_ON(cond) WARN_ON(cond) | ||
389 | #else | ||
390 | /* | ||
391 | * Trick to enable using it as a condition, | ||
392 | * and also not give a warning when it's | ||
393 | * not used that way. | ||
394 | */ | ||
395 | #define CFG80211_DEV_WARN_ON(cond) ({bool __r = (cond); __r; }) | ||
396 | #endif | ||
397 | |||
383 | #endif /* __NET_WIRELESS_CORE_H */ | 398 | #endif /* __NET_WIRELESS_CORE_H */ |