]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f58969512749ca09f512c6dc6a34d5b61a8f84f
treefb9a60fb8ab06663f7054bafcc4b9db6aff12520
parentf8d73fc7f8d5aab70bd7856de08369bca4bc1c1b
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