|
@@ -1587,6 +1587,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|
|
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
|
|
struct hdd_chan_change_params chan_change;
|
|
|
tSap_StationAssocReassocCompleteEvent *event;
|
|
|
+ tSap_StationSetKeyCompleteEvent *key_complete;
|
|
|
int ret = 0;
|
|
|
struct ch_params sap_ch_param = {0};
|
|
|
eCsrPhyMode phy_mode;
|
|
@@ -1972,9 +1973,16 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|
|
* forward the message to hostapd once implementation
|
|
|
* is done for now just print
|
|
|
*/
|
|
|
+ key_complete = &pSapEvent->sapevt.sapStationSetKeyCompleteEvent;
|
|
|
hdd_debug("SET Key: configured status = %s",
|
|
|
- pSapEvent->sapevt.sapStationSetKeyCompleteEvent.
|
|
|
- status ? "eSAP_STATUS_FAILURE" : "eSAP_STATUS_SUCCESS");
|
|
|
+ key_complete->status ?
|
|
|
+ "eSAP_STATUS_FAILURE" : "eSAP_STATUS_SUCCESS");
|
|
|
+
|
|
|
+ if (QDF_IS_STATUS_SUCCESS(key_complete->status)) {
|
|
|
+ hdd_softap_change_sta_state(adapter,
|
|
|
+ &key_complete->peerMacAddr,
|
|
|
+ OL_TXRX_PEER_STATE_AUTH);
|
|
|
+ }
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
case eSAP_STA_MIC_FAILURE_EVENT:
|
|
|
{
|