wifi: cfg80211: fix off-by-one in element defrag
authorJohannes Berg <johannes.berg@intel.com>
Sun, 27 Aug 2023 11:05:19 +0000 (14:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 10:32:15 +0000 (12:32 +0200)
commit43125539fc69c6aa63d34b516939431391bddeac
treec48a5fd81b57a989270d2aae65c33eb588acb1ab
parenta469a5938d1fd98e50119893f22541fe6e269f02
wifi: cfg80211: fix off-by-one in element defrag

If a fragment is the last element, it's erroneously not
accepted. Fix that.

Fixes: f837a653a097 ("wifi: cfg80211: add element defragmentation helper")
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.adca9fbd3317.I6b2df45eb71513f3e48efd196ae3cddec362dc1c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c