diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index a14e6a406681..7eaaee7bb07d 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1753,23 +1753,23 @@ struct cfg80211_ops { | |||
1753 | int (*flush_pmksa)(struct wiphy *wiphy, struct net_device *netdev); | 1753 | int (*flush_pmksa)(struct wiphy *wiphy, struct net_device *netdev); |
1754 | 1754 | ||
1755 | int (*remain_on_channel)(struct wiphy *wiphy, | 1755 | int (*remain_on_channel)(struct wiphy *wiphy, |
1756 | struct net_device *dev, | 1756 | struct wireless_dev *wdev, |
1757 | struct ieee80211_channel *chan, | 1757 | struct ieee80211_channel *chan, |
1758 | enum nl80211_channel_type channel_type, | 1758 | enum nl80211_channel_type channel_type, |
1759 | unsigned int duration, | 1759 | unsigned int duration, |
1760 | u64 *cookie); | 1760 | u64 *cookie); |
1761 | int (*cancel_remain_on_channel)(struct wiphy *wiphy, | 1761 | int (*cancel_remain_on_channel)(struct wiphy *wiphy, |
1762 | struct net_device *dev, | 1762 | struct wireless_dev *wdev, |
1763 | u64 cookie); | 1763 | u64 cookie); |
1764 | 1764 | ||
1765 | int (*mgmt_tx)(struct wiphy *wiphy, struct net_device *dev, | 1765 | int (*mgmt_tx)(struct wiphy *wiphy, struct wireless_dev *wdev, |
1766 | struct ieee80211_channel *chan, bool offchan, | 1766 | struct ieee80211_channel *chan, bool offchan, |
1767 | enum nl80211_channel_type channel_type, | 1767 | enum nl80211_channel_type channel_type, |
1768 | bool channel_type_valid, unsigned int wait, | 1768 | bool channel_type_valid, unsigned int wait, |
1769 | const u8 *buf, size_t len, bool no_cck, | 1769 | const u8 *buf, size_t len, bool no_cck, |
1770 | bool dont_wait_for_ack, u64 *cookie); | 1770 | bool dont_wait_for_ack, u64 *cookie); |
1771 | int (*mgmt_tx_cancel_wait)(struct wiphy *wiphy, | 1771 | int (*mgmt_tx_cancel_wait)(struct wiphy *wiphy, |
1772 | struct net_device *dev, | 1772 | struct wireless_dev *wdev, |
1773 | u64 cookie); | 1773 | u64 cookie); |
1774 | 1774 | ||
1775 | int (*set_power_mgmt)(struct wiphy *wiphy, struct net_device *dev, | 1775 | int (*set_power_mgmt)(struct wiphy *wiphy, struct net_device *dev, |
@@ -1780,7 +1780,7 @@ struct cfg80211_ops { | |||
1780 | s32 rssi_thold, u32 rssi_hyst); | 1780 | s32 rssi_thold, u32 rssi_hyst); |
1781 | 1781 | ||
1782 | void (*mgmt_frame_register)(struct wiphy *wiphy, | 1782 | void (*mgmt_frame_register)(struct wiphy *wiphy, |
1783 | struct net_device *dev, | 1783 | struct wireless_dev *wdev, |
1784 | u16 frame_type, bool reg); | 1784 | u16 frame_type, bool reg); |
1785 | 1785 | ||
1786 | int (*set_antenna)(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant); | 1786 | int (*set_antenna)(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant); |
@@ -3279,7 +3279,7 @@ void cfg80211_disconnected(struct net_device *dev, u16 reason, | |||
3279 | 3279 | ||
3280 | /** | 3280 | /** |
3281 | * cfg80211_ready_on_channel - notification of remain_on_channel start | 3281 | * cfg80211_ready_on_channel - notification of remain_on_channel start |
3282 | * @dev: network device | 3282 | * @wdev: wireless device |
3283 | * @cookie: the request cookie | 3283 | * @cookie: the request cookie |
3284 | * @chan: The current channel (from remain_on_channel request) | 3284 | * @chan: The current channel (from remain_on_channel request) |
3285 | * @channel_type: Channel type | 3285 | * @channel_type: Channel type |
@@ -3287,21 +3287,20 @@ void cfg80211_disconnected(struct net_device *dev, u16 reason, | |||
3287 | * channel | 3287 | * channel |
3288 | * @gfp: allocation flags | 3288 | * @gfp: allocation flags |
3289 | */ | 3289 | */ |
3290 | void cfg80211_ready_on_channel(struct net_device *dev, u64 cookie, | 3290 | void cfg80211_ready_on_channel(struct wireless_dev *wdev, u64 cookie, |
3291 | struct ieee80211_channel *chan, | 3291 | struct ieee80211_channel *chan, |
3292 | enum nl80211_channel_type channel_type, | 3292 | enum nl80211_channel_type channel_type, |
3293 | unsigned int duration, gfp_t gfp); | 3293 | unsigned int duration, gfp_t gfp); |
3294 | 3294 | ||
3295 | /** | 3295 | /** |
3296 | * cfg80211_remain_on_channel_expired - remain_on_channel duration expired | 3296 | * cfg80211_remain_on_channel_expired - remain_on_channel duration expired |
3297 | * @dev: network device | 3297 | * @wdev: wireless device |
3298 | * @cookie: the request cookie | 3298 | * @cookie: the request cookie |
3299 | * @chan: The current channel (from remain_on_channel request) | 3299 | * @chan: The current channel (from remain_on_channel request) |
3300 | * @channel_type: Channel type | 3300 | * @channel_type: Channel type |
3301 | * @gfp: allocation flags | 3301 | * @gfp: allocation flags |
3302 | */ | 3302 | */ |
3303 | void cfg80211_remain_on_channel_expired(struct net_device *dev, | 3303 | void cfg80211_remain_on_channel_expired(struct wireless_dev *wdev, u64 cookie, |
3304 | u64 cookie, | ||
3305 | struct ieee80211_channel *chan, | 3304 | struct ieee80211_channel *chan, |
3306 | enum nl80211_channel_type channel_type, | 3305 | enum nl80211_channel_type channel_type, |
3307 | gfp_t gfp); | 3306 | gfp_t gfp); |
@@ -3329,7 +3328,7 @@ void cfg80211_del_sta(struct net_device *dev, const u8 *mac_addr, gfp_t gfp); | |||
3329 | 3328 | ||
3330 | /** | 3329 | /** |
3331 | * cfg80211_rx_mgmt - notification of received, unprocessed management frame | 3330 | * cfg80211_rx_mgmt - notification of received, unprocessed management frame |
3332 | * @dev: network device | 3331 | * @wdev: wireless device receiving the frame |
3333 | * @freq: Frequency on which the frame was received in MHz | 3332 | * @freq: Frequency on which the frame was received in MHz |
3334 | * @sig_dbm: signal strength in mBm, or 0 if unknown | 3333 | * @sig_dbm: signal strength in mBm, or 0 if unknown |
3335 | * @buf: Management frame (header + body) | 3334 | * @buf: Management frame (header + body) |
@@ -3344,12 +3343,12 @@ void cfg80211_del_sta(struct net_device *dev, const u8 *mac_addr, gfp_t gfp); | |||
3344 | * This function is called whenever an Action frame is received for a station | 3343 | * This function is called whenever an Action frame is received for a station |
3345 | * mode interface, but is not processed in kernel. | 3344 | * mode interface, but is not processed in kernel. |
3346 | */ | 3345 | */ |
3347 | bool cfg80211_rx_mgmt(struct net_device *dev, int freq, int sig_dbm, | 3346 | bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_dbm, |
3348 | const u8 *buf, size_t len, gfp_t gfp); | 3347 | const u8 *buf, size_t len, gfp_t gfp); |
3349 | 3348 | ||
3350 | /** | 3349 | /** |
3351 | * cfg80211_mgmt_tx_status - notification of TX status for management frame | 3350 | * cfg80211_mgmt_tx_status - notification of TX status for management frame |
3352 | * @dev: network device | 3351 | * @wdev: wireless device receiving the frame |
3353 | * @cookie: Cookie returned by cfg80211_ops::mgmt_tx() | 3352 | * @cookie: Cookie returned by cfg80211_ops::mgmt_tx() |
3354 | * @buf: Management frame (header + body) | 3353 | * @buf: Management frame (header + body) |
3355 | * @len: length of the frame data | 3354 | * @len: length of the frame data |
@@ -3360,7 +3359,7 @@ bool cfg80211_rx_mgmt(struct net_device *dev, int freq, int sig_dbm, | |||
3360 | * transmitted with cfg80211_ops::mgmt_tx() to report the TX status of the | 3359 | * transmitted with cfg80211_ops::mgmt_tx() to report the TX status of the |
3361 | * transmission attempt. | 3360 | * transmission attempt. |
3362 | */ | 3361 | */ |
3363 | void cfg80211_mgmt_tx_status(struct net_device *dev, u64 cookie, | 3362 | void cfg80211_mgmt_tx_status(struct wireless_dev *wdev, u64 cookie, |
3364 | const u8 *buf, size_t len, bool ack, gfp_t gfp); | 3363 | const u8 *buf, size_t len, bool ack, gfp_t gfp); |
3365 | 3364 | ||
3366 | 3365 | ||