qcacld-3.0: HDD, SAP changes to Disable/Enable NOA

P2P-GO whenever goes offchannel, issues NOA. With this behavior, we
have issue whenever legacy STA connects to P2P-GO as legacy STA
does not understand NOA. To handle this case, changes are done in HDD
and SAP component and the revised behavior will be:
 1. By default no change in NOA.
 2. Whenever first legacy STA connects to GO, SAP informs HDD with
    new parameter station type. HDD will communicate the same to
    p2p protocol component. Once the connected station is authorized
    p2p protocol component will disable NOA (i.e. P2P-GO will start
    issuing Self-CTS whenever it goes off-channel).
 3. Whenever last legacy STA disconnects from GO, p2p protocol
    component enables NOA (i.e. P2P-GO will start issuing NOA whenever
    it goes off-channel).

Change-Id: Iadab47c9a2aeb434371d4c262623d7196f3b1ab4
CRs-Fixed: 2035609
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index 4062e6a..927f359 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -47,6 +47,7 @@
 #include <cdp_txrx_flow_ctrl_v2.h>
 #include <cdp_txrx_handle.h>
 #include <wlan_hdd_object_manager.h>
+#include "wlan_p2p_ucfg_api.h"
 #ifdef IPA_OFFLOAD
 #include <wlan_hdd_ipa.h>
 #endif
@@ -1067,6 +1068,7 @@
 	if (QDF_STATUS_SUCCESS == qdf_status) {
 		pAdapter->aStaInfo[ucSTAId].tlSTAState =
 			OL_TXRX_PEER_STATE_AUTH;
+		p2p_peer_authorized(pAdapter->hdd_vdev, pDestMacAddress->bytes);
 	}
 
 	EXIT();