[PATCH] mac80211: fix CSA in IBSS mode

2017-02-08 Thread Koen Vandeputte
Add the missing IBSS capability flag during capability init as it needs to be inserted into the generated beacon in order for CSA to work. Signed-off-by: Piotr Gawlowicz <gawlow...@tkn.tu-berlin.de> Signed-off-by: MikoĊ‚aj Chwalisz <chwal...@tkn.tu-berlin.de> Tested-by: Koe

[PATCH] mac80211: only alloc mem if a station doesnt exist yet

2016-12-14 Thread Koen Vandeputte
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.vandepu...@ncentric.com> --- net/mac80211/sta_info.c | 14 +++--- 1 file changed, 7 insertions