nl80211: Optimize cfg80211_bss_expire invocations
authorDenis Kenzior <denkenz@gmail.com>
Mon, 21 May 2018 15:31:13 +0000 (10:31 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 May 2018 09:06:40 +0000 (11:06 +0200)
commitd1e23c9456b2881b71732594f4cdb52d78aedecb
tree199f0dfd20859c5699f4dc77c432a1b8377f5b8b
parentd4e36e5554eb92f3ec7fedad3efb602570584df4
nl80211: Optimize cfg80211_bss_expire invocations

Only invoke cfg80211_bss_expire on the first nl80211_dump_scan
invocation to avoid (likely) redundant processing.

Signed-off-by: Denis Kenzior <denkenz@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c