Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f00459cf authored by Pankaj Singh's avatar Pankaj Singh Committed by Gerrit - the friendly Code Review server
Browse files

wlan: 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: 2734477
parent 76171772
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
 *
 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
 *
@@ -1317,7 +1317,8 @@ int __wlan_hdd_mgmt_tx( struct wiphy *wiphy, struct net_device *dev,
    /* When frame to be transmitted is auth mgmt, then trigger
     * sme_send_mgmt_tx to send auth frame.
     */
    if ((WLAN_HDD_INFRA_STATION == pAdapter->device_mode) &&
    if ((WLAN_HDD_INFRA_STATION == pAdapter->device_mode ||
         WLAN_HDD_SOFTAP == pAdapter->device_mode) &&
        (type == SIR_MAC_MGMT_FRAME && subType == SIR_MAC_MGMT_AUTH)) {
         hal_status = sme_send_mgmt_tx(WLAN_HDD_GET_HAL_CTX(pAdapter),
                                       pAdapter->sessionId, buf, len);