commit | 0c2e384267b815fb784c415a90de7bdd78da0b66 | [log] [tgz] |
---|---|---|
author | Koen Vandeputte <koen.vandeputte@ncentric.com> | Wed Dec 14 17:28:59 2016 +0100 |
committer | Johannes Berg <johannes.berg@intel.com> | Thu Dec 15 10:56:52 2016 +0100 |
tree | f4468fed30a691043ed6f3422a325e6e2e1426b6 | |
parent | 445cd452fe5187e676eef02c917c9e5f837c749e [diff] |
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>