]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mac80211: pass parsed TPE data to drivers
authorJohannes Berg <johannes.berg@intel.com>
Mon, 6 May 2024 19:37:56 +0000 (21:37 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2024 08:35:04 +0000 (10:35 +0200)
commit39dc8b8ea387ce7f4fe2d2d6d550ed52aa9aa040
treef2973595f39af29dd7afb6d8a6fcc6efef326beb
parentcaa12b3dd44996f63b8dd0d842c68866d4ead307
wifi: mac80211: pass parsed TPE data to drivers

Instead of passing the full TPE elements, in all their glory
and mixed up data formats for HE backward compatibility, parse
them fully into the right values, and pass that to the drivers.

Also introduce proper validation already in mac80211, so that
drivers don't need to do it, and parse the EHT portions.

The code now passes the values in the right order according to
the channel used by an interface, which could also be a subset
of the data advertised by the AP, if we couldn't connect with
the full bandwidth (for whatever reason.)

Also add kunit tests for the more complicated bits of it.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Acked-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240506214536.2aa839969b60.I265b28209e0b29772b2f125f7f83de44a4da877b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/ath11k/mac.c
include/linux/ieee80211.h
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/parse.c
net/mac80211/tests/Makefile
net/mac80211/tests/tpe.c [new file with mode: 0644]
net/mac80211/util.c