wifi: mac80211: update the rx_chains after set_antenna()
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 20 Sep 2023 18:25:13 +0000 (21:25 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Sep 2023 07:12:32 +0000 (09:12 +0200)
commit2bf57b00abecb2646bb3a387cfc9e6980658cdb5
tree330186a3fdfc4a9dd100bd720dc5b1685e8c410a
parentb3239498353484fd6ddeb513df89c4628cd623d0
wifi: mac80211: update the rx_chains after set_antenna()

rx_chains was set only upon registration and it we rely on it for the
active chains upon SMPS configuration after association.

When we use the set_antenna() API to limit the rx_chains from 2 to 1,
this caused issues with iwlwifi since we still had 2 active_chains
requested.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230920211508.2dde4da246b2.I904223c868c77cf2ba132a3088fe6506fcbb443b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c