mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
wifi: mac80211: carry element parsing frame type/from_ap
Carry the frame type and from_ap indication in the parse result, the caller should have it, but we often pass the resulting data structure around, so this saves passing more parameters. Link: https://patch.msgid.link/20260428112708.e8e6479f6765.I4a56ad20d40bdbbaa72531208e092eb4fbf6b4d6@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
f6ced3745a
commit
881b246709
|
|
@ -1790,6 +1790,8 @@ struct ieee802_11_elems {
|
|||
const u8 *ie_start;
|
||||
size_t total_len;
|
||||
u32 crc;
|
||||
u8 frame_type;
|
||||
bool from_ap;
|
||||
|
||||
/* pointers to IEs */
|
||||
const struct ieee80211_tdls_lnkie *lnk_id;
|
||||
|
|
|
|||
|
|
@ -1053,6 +1053,9 @@ ieee802_11_parse_elems_full(struct ieee80211_elems_parse_params *params)
|
|||
if (!elems_parse)
|
||||
return NULL;
|
||||
|
||||
elems_parse->elems.frame_type = params->type;
|
||||
elems_parse->elems.from_ap = params->from_ap;
|
||||
|
||||
elems_parse->scratch_len = scratch_len;
|
||||
elems_parse->scratch_pos = elems_parse->scratch;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user