mirror of
https://github.com/torvalds/linux.git
synced 2026-10-25 08:16:03 +01:00
wifi: cfg80211: fix RTS threshold setting for single-radio PHY
Due to an incorrect old_radio_rts_threshold check, we do not set
rdev->wiphy.rts_threshold for a single-radio PHY, and the threshold
value is not propagated to lower layers.
Cc: stable@vger.kernel.org
Fixes: 264637941c ("wifi: cfg80211: Add Support to Set RTS Threshold for each Radio")
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Link: https://patch.msgid.link/20260919092454.50266-1-stf_xl@wp.pl
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
5bfd4b0b40
commit
9eda41e322
|
|
@ -4563,12 +4563,13 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info)
|
|||
rdev->wiphy.retry_long = retry_long;
|
||||
if (changed & WIPHY_PARAM_FRAG_THRESHOLD)
|
||||
rdev->wiphy.frag_threshold = frag_threshold;
|
||||
if ((changed & WIPHY_PARAM_RTS_THRESHOLD) &&
|
||||
old_radio_rts_threshold) {
|
||||
if (changed & WIPHY_PARAM_RTS_THRESHOLD) {
|
||||
rdev->wiphy.rts_threshold = rts_threshold;
|
||||
for (i = 0 ; i < rdev->wiphy.n_radio; i++)
|
||||
rdev->wiphy.radio_cfg[i].rts_threshold =
|
||||
rdev->wiphy.rts_threshold;
|
||||
if (old_radio_rts_threshold) {
|
||||
for (i = 0; i < rdev->wiphy.n_radio; i++)
|
||||
rdev->wiphy.radio_cfg[i].rts_threshold =
|
||||
rdev->wiphy.rts_threshold;
|
||||
}
|
||||
}
|
||||
if (changed & WIPHY_PARAM_COVERAGE_CLASS)
|
||||
rdev->wiphy.coverage_class = coverage_class;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user