wifi: cfg80211: use structs for TBTT information access
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 18 Jun 2023 18:49:52 +0000 (21:49 +0300)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 16 Sep 2023 21:53:42 +0000 (23:53 +0200)
commit8fb6c6a378cbfa6b11c20f555c4b710f6aebe3fb
tree5b624ddae3d9ae664d73964e38c1158ba2331ca5
parent2c0523032ee1833bc82f869b95f1a68dbd614264
wifi: cfg80211: use structs for TBTT information access

Make the data access a bit nicer overall by using structs. There is a
small change here to also accept a TBTT information length of eight
bytes as we do not require the 20 MHz PSD information.

This also fixes a bug reading the short SSID on big endian machines.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230618214436.4c3f8901c1bc.Ic3e94fd6e1bccff7948a252ad3bb87e322690a17@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h