ath6kl: Fix target assert in p2p bringup with multi vif
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Fri, 6 Apr 2012 14:54:30 +0000 (20:24 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 9 Apr 2012 14:49:43 +0000 (17:49 +0300)
commit1e8d13b0aca8414a1ab581e24ae1851b9820a3b1
tree230b6fb9ab7a6011be75da56e469199021cbc78d
parentb514fab5a17464adcb31852c6bd6fd775b5dcb4d
ath6kl: Fix target assert in p2p bringup with multi vif

Using interface 0 for p2p causes target assert. This is because
interface 0 is always initialized to non-p2p operations. Fix this
issue by initializing all the interfaces for p2p when fw is capable
of dynamic interface switching. When fw is not capable of dynamic
switching, make sure p2p is not brought up on interface which is
not initialized for this purpose.

Reported-by: Naveen Singh navesing@qca.qualcomm.com
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/ath/ath6kl/init.c