OSDN Git Service

wifi: mac80211: fragment per STA profile correctly
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 11 Jun 2023 09:14:29 +0000 (12:14 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 12 Jun 2023 07:52:52 +0000 (09:52 +0200)
commitd094482c9974a543851a18a1c587a7d132a81659
tree8935a66ac7d0b2f006c4330359bad8032afa337a
parent7b3b9ac899b54f53f7c9fc07e1c562f56b2187fa
wifi: mac80211: fragment per STA profile correctly

When fragmenting the ML per STA profile, the element ID should be
IEEE80211_MLE_SUBELEM_PER_STA_PROFILE rather than WLAN_EID_FRAGMENT.

Change the helper function to take the to be used element ID and pass
the appropriate value for each of the fragmentation levels.

Fixes: 81151ce462e5 ("wifi: mac80211: support MLO authentication/association with one link")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230611121219.9b5c793d904b.I7dad952bea8e555e2f3139fbd415d0cd2b3a08c3@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/util.c