@@ -151,6 +151,7 @@ enum ieee80211_channel_flags {
151151 * @dfs_state: current state of this channel. Only relevant if radar is required
152152 * on this channel.
153153 * @dfs_state_entered: timestamp (jiffies) when the dfs state was entered.
154+ * @dfs_cac_ms: DFS CAC time in milliseconds, this is valid for DFS channels.
154155 */
155156struct ieee80211_channel {
156157 enum ieee80211_band band ;
@@ -165,6 +166,7 @@ struct ieee80211_channel {
165166 int orig_mag , orig_mpwr ;
166167 enum nl80211_dfs_state dfs_state ;
167168 unsigned long dfs_state_entered ;
169+ unsigned int dfs_cac_ms ;
168170};
169171
170172/**
@@ -2503,7 +2505,8 @@ struct cfg80211_ops {
25032505
25042506 int (* start_radar_detection )(struct wiphy * wiphy ,
25052507 struct net_device * dev ,
2506- struct cfg80211_chan_def * chandef );
2508+ struct cfg80211_chan_def * chandef ,
2509+ u32 cac_time_ms );
25072510 int (* update_ft_ies )(struct wiphy * wiphy , struct net_device * dev ,
25082511 struct cfg80211_update_ft_ies_params * ftie );
25092512 int (* crit_proto_start )(struct wiphy * wiphy ,
@@ -3180,6 +3183,7 @@ struct cfg80211_cached_keys;
31803183 * @p2p_started: true if this is a P2P Device that has been started
31813184 * @cac_started: true if DFS channel availability check has been started
31823185 * @cac_start_time: timestamp (jiffies) when the dfs state was entered.
3186+ * @cac_time_ms: CAC time in ms
31833187 * @ps: powersave mode is enabled
31843188 * @ps_timeout: dynamic powersave timeout
31853189 * @ap_unexpected_nlportid: (private) netlink port ID of application
@@ -3235,6 +3239,7 @@ struct wireless_dev {
32353239
32363240 bool cac_started ;
32373241 unsigned long cac_start_time ;
3242+ unsigned int cac_time_ms ;
32383243
32393244#ifdef CONFIG_CFG80211_WEXT
32403245 /* wext data */
@@ -3667,7 +3672,7 @@ void cfg80211_sched_scan_stopped(struct wiphy *wiphy);
36673672 * cfg80211_inform_bss_width_frame - inform cfg80211 of a received BSS frame
36683673 *
36693674 * @wiphy: the wiphy reporting the BSS
3670- * @channel : The channel the frame was received on
3675+ * @rx_channel : The channel the frame was received on
36713676 * @scan_width: width of the control channel
36723677 * @mgmt: the management frame (probe response or beacon)
36733678 * @len: length of the management frame
@@ -3682,18 +3687,18 @@ void cfg80211_sched_scan_stopped(struct wiphy *wiphy);
36823687 */
36833688struct cfg80211_bss * __must_check
36843689cfg80211_inform_bss_width_frame (struct wiphy * wiphy ,
3685- struct ieee80211_channel * channel ,
3690+ struct ieee80211_channel * rx_channel ,
36863691 enum nl80211_bss_scan_width scan_width ,
36873692 struct ieee80211_mgmt * mgmt , size_t len ,
36883693 s32 signal , gfp_t gfp );
36893694
36903695static inline struct cfg80211_bss * __must_check
36913696cfg80211_inform_bss_frame (struct wiphy * wiphy ,
3692- struct ieee80211_channel * channel ,
3697+ struct ieee80211_channel * rx_channel ,
36933698 struct ieee80211_mgmt * mgmt , size_t len ,
36943699 s32 signal , gfp_t gfp )
36953700{
3696- return cfg80211_inform_bss_width_frame (wiphy , channel ,
3701+ return cfg80211_inform_bss_width_frame (wiphy , rx_channel ,
36973702 NL80211_BSS_CHAN_WIDTH_20 ,
36983703 mgmt , len , signal , gfp );
36993704}
@@ -3702,7 +3707,7 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy,
37023707 * cfg80211_inform_bss - inform cfg80211 of a new BSS
37033708 *
37043709 * @wiphy: the wiphy reporting the BSS
3705- * @channel : The channel the frame was received on
3710+ * @rx_channel : The channel the frame was received on
37063711 * @scan_width: width of the control channel
37073712 * @bssid: the BSSID of the BSS
37083713 * @tsf: the TSF sent by the peer in the beacon/probe response (or 0)
@@ -3721,20 +3726,20 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy,
37213726 */
37223727struct cfg80211_bss * __must_check
37233728cfg80211_inform_bss_width (struct wiphy * wiphy ,
3724- struct ieee80211_channel * channel ,
3729+ struct ieee80211_channel * rx_channel ,
37253730 enum nl80211_bss_scan_width scan_width ,
37263731 const u8 * bssid , u64 tsf , u16 capability ,
37273732 u16 beacon_interval , const u8 * ie , size_t ielen ,
37283733 s32 signal , gfp_t gfp );
37293734
37303735static inline struct cfg80211_bss * __must_check
37313736cfg80211_inform_bss (struct wiphy * wiphy ,
3732- struct ieee80211_channel * channel ,
3737+ struct ieee80211_channel * rx_channel ,
37333738 const u8 * bssid , u64 tsf , u16 capability ,
37343739 u16 beacon_interval , const u8 * ie , size_t ielen ,
37353740 s32 signal , gfp_t gfp )
37363741{
3737- return cfg80211_inform_bss_width (wiphy , channel ,
3742+ return cfg80211_inform_bss_width (wiphy , rx_channel ,
37383743 NL80211_BSS_CHAN_WIDTH_20 ,
37393744 bssid , tsf , capability ,
37403745 beacon_interval , ie , ielen , signal ,
0 commit comments