ath10k: use vif->type and vif->p2p for P2P_GO check
authorPeter Oh <poh@qca.qualcomm.com>
Thu, 28 Jan 2016 21:54:09 +0000 (13:54 -0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 2 Feb 2016 12:07:46 +0000 (14:07 +0200)
commit08c27be1db84dcdad14e86ec76d9c9915deb14eb
treefb9a60fb8ab06663f7054bafcc4b9db6aff12520
parente70e9ba9df8609908c34d042cf980c1a59c56900
ath10k: use vif->type and vif->p2p for P2P_GO check

Interface type P2P_GO can be checked by either arvif->vdev_type
and arvif->vdev_subtype or vif->type and vif->p2p.
Use later one to avoid more cpu consumption that could happen
when subtype abstraction layer change is introduced.

Signed-off-by: Peter Oh <poh@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/wmi.c