]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: fix probe req HE capabilities access
authorJames Prestwood <prestwoj@gmail.com>
Wed, 28 Sep 2022 22:49:10 +0000 (15:49 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 12:39:47 +0000 (14:39 +0200)
commit73ce5450f4682f0c7c53d71a924e520d788c6585
tree687fa3ef388894a2d9804dbaa2cd087759a2485b
parentfc62f3bd85595041a080ddac02e4a0ff57891f3d
wifi: mac80211: fix probe req HE capabilities access

When building the probe request IEs HE support is checked for
the 6GHz band (wiphy->bands[NL80211_BAND_6GHZ]). If supported
the HE capability IE should be included according to the spec.
The problem is the 16-bit capability is obtained from the
band object (sband) that was passed in, not the 6GHz band
object (sband6). If the sband object doesn't support HE it will
result in a warning.

Fixes: 8bd862747463 ("mac80211: always include HE 6GHz capability in probe request")
Signed-off-by: James Prestwood <prestwoj@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c