]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: conditionally advertise HE in probe requests
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 Jun 2021 10:41:40 +0000 (13:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jun 2021 11:05:09 +0000 (13:05 +0200)
commitba78334b30520b584fe4626206ad18bb12c6ad49
tree7ab4601440115e67b394ae6e88eed79e79666b51
parent76b2d81809435f486977a45d87f897dcd5e3056f
mac80211: conditionally advertise HE in probe requests

While building probe requests, only enable HE capability if
there are actually any channels in the band with HE enabled,
otherwise we're not really capable. We're doing the same in
association requests, so doing it here makes it consistent.

This also makes HE not appear available if it isn't due to
regulatory constraints.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210618133832.b5513f2af335.Ic01862678712ae4238cea43ad2185928865efad2@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c