]> www.infradead.org Git - users/willy/xarray.git/commit
wifi: iwlwifi: mvm: refactor scan channel description a bit
authorJohannes Berg <johannes.berg@intel.com>
Sun, 1 Sep 2024 04:17:50 +0000 (07:17 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Sep 2024 09:55:26 +0000 (11:55 +0200)
commit1a7d2870f472db94d2dada643651f1e604c67bcf
treee745108ba30d2e0b403fb9035e98328bfdf97de1
parent2c9ffe872e64f5aec12f2ff6cec1b7542569a88f
wifi: iwlwifi: mvm: refactor scan channel description a bit

The channel number is at the same position across all versions
of the channel description struct, so move it out of the union
that versions it. Also add __packed annotations to all of the
sub-structs and the union so it's packed correctly, and fully
document the structure.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240901071542.e31623ae4201.I1ea69a8ec3d39492f39d84e31fb105b159359c28@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/scan.h
drivers/net/wireless/intel/iwlwifi/mvm/scan.c