Commit dd55ab59 authored by Arik Nemtsov's avatar Arik Nemtsov Committed by Johannes Berg

mac80211: TDLS: check reg with IR-relax on chandef upgrade

When checking if a TDLS chandef can be upgraded, IR-relaxation can be
taken into account to allow more channels.
Signed-off-by: default avatarArik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 82c0cc90
...@@ -333,8 +333,8 @@ ieee80211_tdls_chandef_vht_upgrade(struct ieee80211_sub_if_data *sdata, ...@@ -333,8 +333,8 @@ ieee80211_tdls_chandef_vht_upgrade(struct ieee80211_sub_if_data *sdata,
/* proceed to downgrade the chandef until usable or the same */ /* proceed to downgrade the chandef until usable or the same */
while (uc.width > max_width && while (uc.width > max_width &&
!cfg80211_reg_can_beacon(sdata->local->hw.wiphy, !cfg80211_reg_can_beacon_relax(sdata->local->hw.wiphy, &uc,
&uc, sdata->wdev.iftype)) sdata->wdev.iftype))
ieee80211_chandef_downgrade(&uc); ieee80211_chandef_downgrade(&uc);
if (!cfg80211_chandef_identical(&uc, &sta->tdls_chandef)) { if (!cfg80211_chandef_identical(&uc, &sta->tdls_chandef)) {
......
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