Commit 7bb106eb authored by Emmanuel Grumbach's avatar Emmanuel Grumbach Committed by Johannes Berg

cfg80211: remove support for adjacent channel compensation

The only driver that used that was iwlwifi and it removed
support for this. Remove the feature here as well.
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200214232336.a530de38e511.I393bc395f6037c8cca6421ed550e3072dc248aed@changeidSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent ca98c47d
...@@ -4577,12 +4577,6 @@ struct wiphy_iftype_akm_suites { ...@@ -4577,12 +4577,6 @@ struct wiphy_iftype_akm_suites {
* and probe responses. This value should be set if the driver * and probe responses. This value should be set if the driver
* wishes to limit the number of csa counters. Default (0) means * wishes to limit the number of csa counters. Default (0) means
* infinite. * infinite.
* @max_adj_channel_rssi_comp: max offset of between the channel on which the
* frame was sent and the channel on which the frame was heard for which
* the reported rssi is still valid. If a driver is able to compensate the
* low rssi when a frame is heard on different channel, then it should set
* this variable to the maximal offset for which it can compensate.
* This value should be set in MHz.
* @bss_select_support: bitmask indicating the BSS selection criteria supported * @bss_select_support: bitmask indicating the BSS selection criteria supported
* by the driver in the .connect() callback. The bit position maps to the * by the driver in the .connect() callback. The bit position maps to the
* attribute indices defined in &enum nl80211_bss_select_attr. * attribute indices defined in &enum nl80211_bss_select_attr.
...@@ -4734,7 +4728,6 @@ struct wiphy { ...@@ -4734,7 +4728,6 @@ struct wiphy {
u16 max_ap_assoc_sta; u16 max_ap_assoc_sta;
u8 max_num_csa_counters; u8 max_num_csa_counters;
u8 max_adj_channel_rssi_comp;
u32 bss_select_support; u32 bss_select_support;
......
...@@ -201,8 +201,7 @@ ieee80211_bss_info_update(struct ieee80211_local *local, ...@@ -201,8 +201,7 @@ ieee80211_bss_info_update(struct ieee80211_local *local,
mgmt->bssid, cbss->bssid); mgmt->bssid, cbss->bssid);
/* In case the signal is invalid update the status */ /* In case the signal is invalid update the status */
signal_valid = abs(channel->center_freq - cbss->channel->center_freq) signal_valid = channel == cbss->channel;
<= local->hw.wiphy->max_adj_channel_rssi_comp;
if (!signal_valid) if (!signal_valid)
rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL; rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
......
...@@ -1433,8 +1433,7 @@ cfg80211_inform_single_bss_data(struct wiphy *wiphy, ...@@ -1433,8 +1433,7 @@ cfg80211_inform_single_bss_data(struct wiphy *wiphy,
} }
rcu_assign_pointer(tmp.pub.ies, ies); rcu_assign_pointer(tmp.pub.ies, ies);
signal_valid = abs(data->chan->center_freq - channel->center_freq) <= signal_valid = data->chan == channel;
wiphy->max_adj_channel_rssi_comp;
res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid, ts); res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid, ts);
if (!res) if (!res)
return NULL; return NULL;
...@@ -1851,8 +1850,7 @@ cfg80211_inform_single_bss_frame_data(struct wiphy *wiphy, ...@@ -1851,8 +1850,7 @@ cfg80211_inform_single_bss_frame_data(struct wiphy *wiphy,
memcpy(tmp.pub.chain_signal, data->chain_signal, IEEE80211_MAX_CHAINS); memcpy(tmp.pub.chain_signal, data->chain_signal, IEEE80211_MAX_CHAINS);
ether_addr_copy(tmp.parent_bssid, data->parent_bssid); ether_addr_copy(tmp.parent_bssid, data->parent_bssid);
signal_valid = abs(data->chan->center_freq - channel->center_freq) <= signal_valid = data->chan == channel;
wiphy->max_adj_channel_rssi_comp;
res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid, res = cfg80211_bss_update(wiphy_to_rdev(wiphy), &tmp, signal_valid,
jiffies); jiffies);
if (!res) if (!res)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment