]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211: only alloc mem if a station doesn't exist yet
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Wed, 14 Dec 2016 16:28:59 +0000 (17:28 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Dec 2016 09:56:52 +0000 (10:56 +0100)
commit0c2e384267b815fb784c415a90de7bdd78da0b66
treef4468fed30a691043ed6f3422a325e6e2e1426b6
parent445cd452fe5187e676eef02c917c9e5f837c749e
mac80211: only alloc mem if a station doesn't exist yet

This speeds up the function in case a station already exists by avoiding
calling an expensive kzalloc just to free it again after the next check.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c