@@ -2536,7 +2536,6 @@ struct cfg80211_scan_6ghz_params {
25362536 * @n_ssids: number of SSIDs
25372537 * @channels: channels to scan on.
25382538 * @n_channels: total number of channels to scan
2539- * @scan_width: channel width for scanning
25402539 * @ie: optional information element(s) to add into Probe Request or %NULL
25412540 * @ie_len: length of ie in octets
25422541 * @duration: how long to listen on each channel, in TUs. If
@@ -2566,7 +2565,6 @@ struct cfg80211_scan_request {
25662565 struct cfg80211_ssid * ssids ;
25672566 int n_ssids ;
25682567 u32 n_channels ;
2569- enum nl80211_bss_scan_width scan_width ;
25702568 const u8 * ie ;
25712569 size_t ie_len ;
25722570 u16 duration ;
@@ -2661,7 +2659,6 @@ struct cfg80211_bss_select_adjust {
26612659 * @ssids: SSIDs to scan for (passed in the probe_reqs in active scans)
26622660 * @n_ssids: number of SSIDs
26632661 * @n_channels: total number of channels to scan
2664- * @scan_width: channel width for scanning
26652662 * @ie: optional information element(s) to add into Probe Request or %NULL
26662663 * @ie_len: length of ie in octets
26672664 * @flags: control flags from &enum nl80211_scan_flags
@@ -2709,7 +2706,6 @@ struct cfg80211_sched_scan_request {
27092706 struct cfg80211_ssid * ssids ;
27102707 int n_ssids ;
27112708 u32 n_channels ;
2712- enum nl80211_bss_scan_width scan_width ;
27132709 const u8 * ie ;
27142710 size_t ie_len ;
27152711 u32 flags ;
@@ -2757,7 +2753,6 @@ enum cfg80211_signal_type {
27572753/**
27582754 * struct cfg80211_inform_bss - BSS inform data
27592755 * @chan: channel the frame was received on
2760- * @scan_width: scan width that was used
27612756 * @signal: signal strength value, according to the wiphy's
27622757 * signal type
27632758 * @boottime_ns: timestamp (CLOCK_BOOTTIME) when the information was
@@ -2777,7 +2772,6 @@ enum cfg80211_signal_type {
27772772 */
27782773struct cfg80211_inform_bss {
27792774 struct ieee80211_channel * chan ;
2780- enum nl80211_bss_scan_width scan_width ;
27812775 s32 signal ;
27822776 u64 boottime_ns ;
27832777 u64 parent_tsf ;
@@ -2811,7 +2805,6 @@ struct cfg80211_bss_ies {
28112805 * for use in scan results and similar.
28122806 *
28132807 * @channel: channel this BSS is on
2814- * @scan_width: width of the control channel
28152808 * @bssid: BSSID of the BSS
28162809 * @beacon_interval: the beacon interval as from the frame
28172810 * @capability: the capability field in host byte order
@@ -2841,7 +2834,6 @@ struct cfg80211_bss_ies {
28412834 */
28422835struct cfg80211_bss {
28432836 struct ieee80211_channel * channel ;
2844- enum nl80211_bss_scan_width scan_width ;
28452837
28462838 const struct cfg80211_bss_ies __rcu * ies ;
28472839 const struct cfg80211_bss_ies __rcu * beacon_ies ;
@@ -6321,13 +6313,11 @@ ieee80211_get_response_rate(struct ieee80211_supported_band *sband,
63216313/**
63226314 * ieee80211_mandatory_rates - get mandatory rates for a given band
63236315 * @sband: the band to look for rates in
6324- * @scan_width: width of the control channel
63256316 *
63266317 * This function returns a bitmap of the mandatory rates for the given
63276318 * band, bits are set according to the rate position in the bitrates array.
63286319 */
6329- u32 ieee80211_mandatory_rates (struct ieee80211_supported_band * sband ,
6330- enum nl80211_bss_scan_width scan_width );
6320+ u32 ieee80211_mandatory_rates (struct ieee80211_supported_band * sband );
63316321
63326322/*
63336323 * Radiotap parsing functions -- for controlled injection support
@@ -6988,22 +6978,6 @@ cfg80211_inform_bss_frame_data(struct wiphy *wiphy,
69886978 struct ieee80211_mgmt * mgmt , size_t len ,
69896979 gfp_t gfp );
69906980
6991- static inline struct cfg80211_bss * __must_check
6992- cfg80211_inform_bss_width_frame (struct wiphy * wiphy ,
6993- struct ieee80211_channel * rx_channel ,
6994- enum nl80211_bss_scan_width scan_width ,
6995- struct ieee80211_mgmt * mgmt , size_t len ,
6996- s32 signal , gfp_t gfp )
6997- {
6998- struct cfg80211_inform_bss data = {
6999- .chan = rx_channel ,
7000- .scan_width = scan_width ,
7001- .signal = signal ,
7002- };
7003-
7004- return cfg80211_inform_bss_frame_data (wiphy , & data , mgmt , len , gfp );
7005- }
7006-
70076981static inline struct cfg80211_bss * __must_check
70086982cfg80211_inform_bss_frame (struct wiphy * wiphy ,
70096983 struct ieee80211_channel * rx_channel ,
@@ -7012,7 +6986,6 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy,
70126986{
70136987 struct cfg80211_inform_bss data = {
70146988 .chan = rx_channel ,
7015- .scan_width = NL80211_BSS_CHAN_WIDTH_20 ,
70166989 .signal = signal ,
70176990 };
70186991
@@ -7114,26 +7087,6 @@ cfg80211_inform_bss_data(struct wiphy *wiphy,
71147087 u16 beacon_interval , const u8 * ie , size_t ielen ,
71157088 gfp_t gfp );
71167089
7117- static inline struct cfg80211_bss * __must_check
7118- cfg80211_inform_bss_width (struct wiphy * wiphy ,
7119- struct ieee80211_channel * rx_channel ,
7120- enum nl80211_bss_scan_width scan_width ,
7121- enum cfg80211_bss_frame_type ftype ,
7122- const u8 * bssid , u64 tsf , u16 capability ,
7123- u16 beacon_interval , const u8 * ie , size_t ielen ,
7124- s32 signal , gfp_t gfp )
7125- {
7126- struct cfg80211_inform_bss data = {
7127- .chan = rx_channel ,
7128- .scan_width = scan_width ,
7129- .signal = signal ,
7130- };
7131-
7132- return cfg80211_inform_bss_data (wiphy , & data , ftype , bssid , tsf ,
7133- capability , beacon_interval , ie , ielen ,
7134- gfp );
7135- }
7136-
71377090static inline struct cfg80211_bss * __must_check
71387091cfg80211_inform_bss (struct wiphy * wiphy ,
71397092 struct ieee80211_channel * rx_channel ,
@@ -7144,7 +7097,6 @@ cfg80211_inform_bss(struct wiphy *wiphy,
71447097{
71457098 struct cfg80211_inform_bss data = {
71467099 .chan = rx_channel ,
7147- .scan_width = NL80211_BSS_CHAN_WIDTH_20 ,
71487100 .signal = signal ,
71497101 };
71507102
@@ -7229,19 +7181,6 @@ void cfg80211_bss_iter(struct wiphy *wiphy,
72297181 void * data ),
72307182 void * iter_data );
72317183
7232- static inline enum nl80211_bss_scan_width
7233- cfg80211_chandef_to_scan_width (const struct cfg80211_chan_def * chandef )
7234- {
7235- switch (chandef -> width ) {
7236- case NL80211_CHAN_WIDTH_5 :
7237- return NL80211_BSS_CHAN_WIDTH_5 ;
7238- case NL80211_CHAN_WIDTH_10 :
7239- return NL80211_BSS_CHAN_WIDTH_10 ;
7240- default :
7241- return NL80211_BSS_CHAN_WIDTH_20 ;
7242- }
7243- }
7244-
72457184/**
72467185 * cfg80211_rx_mlme_mgmt - notification of processed MLME management frame
72477186 * @dev: network device
0 commit comments