wifi: mac80211: tests: add tests for ieee80211_determine_chan_modeAdd a few tests for ieee80211_determine_chan_mode that check thatmac80211 will not try to connect to an AP if an advertised basic
wifi: mac80211: tests: add tests for ieee80211_determine_chan_modeAdd a few tests for ieee80211_determine_chan_mode that check thatmac80211 will not try to connect to an AP if an advertised basic rate isnot supported.Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>Reviewed-by: Johannes Berg <johannes.berg@intel.com>Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>Link: https://patch.msgid.link/20250205110958.530c81eb7fdc.Ia77f5efdf9efb70d2766a3d6bf425553bcb308e8@changeidSigned-off-by: Johannes Berg <johannes.berg@intel.com>
show more ...
wifi: mac80211: tests: add utility to create sdata skeletonSome functions that should be tested may expect an sdata object that isconfigured to a basic degree. Add setup code to create such an obj
wifi: mac80211: tests: add utility to create sdata skeletonSome functions that should be tested may expect an sdata object that isconfigured to a basic degree. Add setup code to create such an objectfor use by tests.Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>Reviewed-by: Johannes Berg <johannes.berg@intel.com>Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>Link: https://patch.msgid.link/20250101070249.12eeefd3c98b.I6e8c2b8374d4305f16675524ca30621e089b6fb0@changeidSigned-off-by: Johannes Berg <johannes.berg@intel.com>
module: Convert symbol namespace to string literalClean up the existing export namespace code along the same lines ofcommit 33def8498fdd ("treewide: Convert macro and uses of __section(foo)to __s
module: Convert symbol namespace to string literalClean up the existing export namespace code along the same lines ofcommit 33def8498fdd ("treewide: Convert macro and uses of __section(foo)to __section("foo")") and for the same reason, it is not desired for thenamespace argument to be a macro expansion itself.Scripted using git grep -l -e MODULE_IMPORT_NS -e EXPORT_SYMBOL_NS | while read file; do awk -i inplace ' /^#define EXPORT_SYMBOL_NS/ { gsub(/__stringify\(ns\)/, "ns"); print; next; } /^#define MODULE_IMPORT_NS/ { gsub(/__stringify\(ns\)/, "ns"); print; next; } /MODULE_IMPORT_NS/ { $0 = gensub(/MODULE_IMPORT_NS\(([^)]*)\)/, "MODULE_IMPORT_NS(\"\\1\")", "g"); } /EXPORT_SYMBOL_NS/ { if ($0 ~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+),/) { if ($0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/ && $0 !~ /(EXPORT_SYMBOL_NS[^(]*)\(\)/ && $0 !~ /^my/) { getline line; gsub(/[[:space:]]*\\$/, ""); gsub(/[[:space:]]/, "", line); $0 = $0 " " line; } $0 = gensub(/(EXPORT_SYMBOL_NS[^(]*)\(([^,]+), ([^)]+)\)/, "\\1(\\2, \"\\3\")", "g"); } } { print }' $file; doneRequested-by: Masahiro Yamada <masahiroy@kernel.org>Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>Link: https://mail.google.com/mail/u/2/#inbox/FMfcgzQXKWgMmjdFwwdsfgxzKpVHWPlcAcked-by: Greg KH <gregkh@linuxfoundation.org>Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
wifi: mac80211: pass parsed TPE data to driversInstead of passing the full TPE elements, in all their gloryand mixed up data formats for HE backward compatibility, parsethem fully into the right
wifi: mac80211: pass parsed TPE data to driversInstead of passing the full TPE elements, in all their gloryand mixed up data formats for HE backward compatibility, parsethem fully into the right values, and pass that to the drivers.Also introduce proper validation already in mac80211, so thatdrivers don't need to do it, and parse the EHT portions.The code now passes the values in the right order according tothe channel used by an interface, which could also be a subsetof the data advertised by the AP, if we couldn't connect withthe 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@changeidSigned-off-by: Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: hide element parsing internalsRework the data structures to hide element parsing internalsfrom the users.Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
wifi: mac80211: hide element parsing internalsRework the data structures to hide element parsing internalsfrom the users.Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>Link: https://msgid.link/20240228094902.19c610b529e2.Ie7ea2dcb6713911590ace6583a4748f32dc37df2@changeidSigned-off-by: Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: clean up connection processRewrite the station-side connection handling. The connectionflags (IEEE80211_DISABLE_*) are rather confusing, and they'renot always maintained well. Add
wifi: mac80211: clean up connection processRewrite the station-side connection handling. The connectionflags (IEEE80211_DISABLE_*) are rather confusing, and they'renot always maintained well. Additionally, for wider-bandwidthOFDMA support we need to know the precise bandwidth of the AP,which is currently somewhat difficult.Rewrite this to have a 'mode' (S1G/legacy/HT/...) and a limiton the bandwidth. This is not entirely clean because some ofthose modes aren't completely sequenced (as this assumes insome places), e.g. VHT doesn't exist on 2.4 GHz, but HE does.However, it still simplifies things and gives us a good ideawhat we're operating as, so we can parse elements accordinglyetc.This leaves a FIXME for puncturing, this is addressed in alater patch.Reviewed-by: Ilan Peer <ilan.peer@intel.com>Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>Link: https://msgid.link/20240129194108.9451722c0110.I3e61f4cfe9da89008e1854160093c76a1e69dc2a@changeidSigned-off-by: Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: kunit: extend MFP testsExtend the MFP tests to handle the case of deauth/disassocand robust action frames (that are not protected dual ofpublic action frames).Reviewed-by: Grego
wifi: mac80211: kunit: extend MFP testsExtend the MFP tests to handle the case of deauth/disassocand robust action frames (that are not protected dual ofpublic action frames).Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>Link: https://msgid.link/20231220151952.415232-6-benjamin@sipsolutions.netSigned-off-by: Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: kunit: generalize public action testGeneralize the test to be able to handle arbitraryaction categories and non-action frames, for furthertest expansion.Reviewed-by: Gregory Gre
wifi: mac80211: kunit: generalize public action testGeneralize the test to be able to handle arbitraryaction categories and non-action frames, for furthertest expansion.Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>Link: https://msgid.link/20231220151952.415232-5-benjamin@sipsolutions.netSigned-off-by: Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: add kunit tests for public action handlingCheck the logic in ieee80211_drop_unencrypted_mgmt()according to a list of test cases derived from thespec.Reviewed-by: Benjamin Berg <
wifi: mac80211: add kunit tests for public action handlingCheck the logic in ieee80211_drop_unencrypted_mgmt()according to a list of test cases derived from thespec.Reviewed-by: Benjamin Berg <benjamin.berg@intel.com>Link: https://msgid.link/20231220151952.415232-4-benjamin@sipsolutions.netSigned-off-by: Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: add an element parsing unit testAdd a unit test for the parsing of a fragmented sta profilesub-element inside a fragmented multi-link element.Signed-off-by: Johannes Berg <johann
wifi: mac80211: add an element parsing unit testAdd a unit test for the parsing of a fragmented sta profilesub-element inside a fragmented multi-link element.Signed-off-by: Johannes Berg <johannes.berg@intel.com>Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>Link: https://lore.kernel.org/r/20230827135854.333bc75df13f.I0ddfeb6a88a4d89e7c7850e8ef45a4b19b5a061a@changeidSigned-off-by: Johannes Berg <johannes.berg@intel.com>