]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: remove/avoid misleading prints
authorJames Prestwood <prestwoj@gmail.com>
Thu, 15 Sep 2022 19:55:53 +0000 (12:55 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 12:40:33 +0000 (14:40 +0200)
commit6d07130380e19e44bb22ad4470b677bd2d42d8ae
treef37c8c7dc0e69c077e09bfefb1a9631d6a01e1c2
parent4cbf63e10781d5251e7009bf9d5a00d7ebf80afb
wifi: mac80211: remove/avoid misleading prints

At some point a few kernel debug prints started appearing which
indicated something was sending invalid IEs:

"bad VHT capabilities, disabling VHT"
"Invalid HE elem, Disable HE"

Turns out these were being printed because the local hardware
supported HE/VHT but the peer/AP did not. Bad/invalid indicates,
to me at least, that the IE is in some way malformed, not missing.

For the HE print (ieee80211_verify_peer_he_mcs_support) it will
now silently fail if the HE capability element is missing (still
prints if the element size is wrong).

For the VHT print, it has been removed completely and will silently
set the DISABLE_VHT flag which is consistent with how DISABLE_HT
is set.

Signed-off-by: James Prestwood <prestwoj@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c