ath6kl: Request P2P capabilities during target init
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 30 Aug 2011 18:57:57 +0000 (21:57 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 31 Aug 2011 07:13:01 +0000 (10:13 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/init.c

index ad9716c91a81525fa0c3aa536362d8674ed44cd0..48c82e9561bfd34069ffb2d8740f4b8961db51cd 100644 (file)
@@ -417,6 +417,7 @@ void ath6kl_target_failure(struct ath6kl *ar)
 static int ath6kl_target_config_wlan_params(struct ath6kl *ar)
 {
        int status = 0;
+       int ret;
 
        /*
         * Configure the device for rx dot11 header rules. "0,0" are the
@@ -461,6 +462,15 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar)
                        status = -EIO;
                }
 
+       ret = ath6kl_wmi_info_req_cmd(ar->wmi, P2P_FLAG_CAPABILITIES_REQ |
+                                     P2P_FLAG_MACADDR_REQ |
+                                     P2P_FLAG_HMODEL_REQ);
+       if (ret) {
+               ath6kl_dbg(ATH6KL_DBG_TRC, "failed to request P2P "
+                          "capabilities (%d) - assuming P2P not supported\n",
+                          ret);
+       }
+
        return status;
 }