ath6kl: handle probe response from P2P device in P2P GO mode
authorAarthi Thiruvengadam <athiruve@qca.qualcomm.com>
Thu, 15 Mar 2012 21:34:56 +0000 (14:34 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 20 Mar 2012 08:33:11 +0000 (10:33 +0200)
commitc86e4f44f1d0d070f0b7b7750a70eb5d81ceaeaa
tree32266a1d8a486194393bb75b1eabee6d50ef5e85
parent9df2a0b7096873e91d1b6b0e842e9f6bdc7ee9fd
ath6kl: handle probe response from P2P device in P2P GO mode

When the device is in P2P GO mode and in listen state, the correct behavior is
to see two different probe response frames - one from P2P device and the other
from GO. wpa_supplicant uses the same mechanism to send the frame in both cases
(ath6kl_mgmt_tx). For GO probe response, ath6kl needs to call
ath6kl_send_go_probe_resp (this will add only WSC/P2P IEs and the rest of the
IEs are filled in by the firmware). That was done based on the nw_type ==
AP_NETWORK which would work if P2P Device role were in a separate netdev. When
P2P Device and GO use the same netdev, ath6kl needs to use the special GO probe
response case only if SSID is longer than P2P wildcard SSID.

Signed-off-by: Aarthi Thiruvengadam <athiruve@qca.qualcomm.com>
Reviewed-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/ath/ath6kl/core.h