]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: cfg80211: scan: skip duplicate RNR entries
authorJohannes Berg <johannes.berg@intel.com>
Wed, 1 Jan 2025 05:05:26 +0000 (07:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2025 14:26:44 +0000 (15:26 +0100)
commit993ace39efd08e8dc29635eca9884adea344401e
tree5aa7fd785beaf0bf1280265c90a05fe6cb0dd588
parent69f9556556b2812e9a63099582306b2b940e704d
wifi: cfg80211: scan: skip duplicate RNR entries

There really shouldn't be duplicate entries when we give
the list to the driver, and since we already have a list
it's easy to avoid.

While at it, remove the unnecessary allocation there.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250101070249.b0012c70f503.Id6fcad979434c1437340aa283abae2906345cca1@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c