]> git.baikalelectronics.ru Git - kernel.git/commit
qtnfmac: cleanup wdev structure between its uses
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Tue, 29 May 2018 12:00:00 +0000 (15:00 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 30 May 2018 19:20:05 +0000 (22:20 +0300)
commit06be77f109aef2c3b79c519a44302a12826c2658
tree1a83afecc48ce2c2414876209ca1c2668a5aa220
parent5a2b5e2b23127e4a743b2ce1d736a56b7eaf74ca
qtnfmac: cleanup wdev structure between its uses

Driver uses statically allocated wdev structures for each virtual
interface. However wdev structure is not properly cleaned up between
its uses. As a result, various bugs appear when userspace tools
like hostapd were not gracefully stopped.

In particular, this commit fixes the following issue:
- start hostapd with more than 2 mBSS
- kill hostapd using SIGKILL
- start again hostapd with more than 2 mBSS
However only two mBSS entities will be started: primary
and the last BSS listed in hostapd config.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
drivers/net/wireless/quantenna/qtnfmac/core.c