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: NKoen Vandeputte <koen.vandeputte@ncentric.com> Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
Showing
想要评论请 注册 或 登录