]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: zero arvif memory on add_interface()
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 31 Jul 2013 08:55:14 +0000 (10:55 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 2 Aug 2013 06:37:29 +0000 (09:37 +0300)
commit4ca1d80c3225e3308196482493c191e03d9bc95f
treeccb6cc6c068ba091e8566a6fb425a79df58fa1ea
parentbe8d831a69468a7856bb6350a04d0aac7c1443a6
ath10k: zero arvif memory on add_interface()

The private memory area in vif provided by
mac80211 isn't guaranteed to be zeroed.

This patch should fix issues when switching
between STA and AP interface types.

The tim_bitmap could become polluted by STA bssid
field (since it's a union), wep_keys array
could also become polluted with invalid pointers
and probably much more.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c