Ver Fonte

qcacld-3.0: Enable mgmt_tx for auth frames in SAP mode

Hostapd handles SAE authentication and sends the
authentication frames via NL80211_CMD_FRAME interface.
Enable mgmt_tx API for SAP mode as well to
facilitate the same.

Change-Id: Ie858881333b0f12e03f9a4f7b54fe5476b1d9173
CRs-Fixed: 2396335
Srinivas Dasari há 6 anos atrás
pai
commit
12df344db1
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      core/hdd/src/wlan_hdd_p2p.c

+ 2 - 1
core/hdd/src/wlan_hdd_p2p.c

@@ -254,7 +254,8 @@ static int __wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
 	 * Where as wlan_cfg80211_mgmt_tx requires roc and requires approval
 	 * from policy manager.
 	 */
-	if ((adapter->device_mode == QDF_STA_MODE) &&
+	if ((adapter->device_mode == QDF_STA_MODE ||
+	     adapter->device_mode == QDF_SAP_MODE) &&
 	    (type == SIR_MAC_MGMT_FRAME &&
 	    sub_type == SIR_MAC_MGMT_AUTH)) {
 		qdf_mtrace(QDF_MODULE_ID_HDD, QDF_MODULE_ID_SME,