|
@@ -1,6 +1,6 @@
|
|
|
/*
|
|
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
|
|
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -35,7 +35,7 @@
|
|
|
#include "cdp_txrx_misc.h"
|
|
|
#include <cdp_txrx_handle.h>
|
|
|
|
|
|
-void wma_add_sta_ndi_mode(tp_wma_handle wma, tpAddStaParams add_sta)
|
|
|
+QDF_STATUS wma_add_sta_ndi_mode(tp_wma_handle wma, tpAddStaParams add_sta)
|
|
|
{
|
|
|
enum ol_txrx_peer_state state = OL_TXRX_PEER_STATE_CONN;
|
|
|
uint8_t pdev_id = WMI_PDEV_ID_SOC;
|
|
@@ -96,12 +96,13 @@ void wma_add_sta_ndi_mode(tp_wma_handle wma, tpAddStaParams add_sta)
|
|
|
add_sta->nss = iface->nss;
|
|
|
add_sta->status = QDF_STATUS_SUCCESS;
|
|
|
send_rsp:
|
|
|
+ status = add_sta->status;
|
|
|
wma_debug("Sending add sta rsp to umac (mac:"QDF_MAC_ADDR_FMT", status:%d)",
|
|
|
QDF_MAC_ADDR_REF(add_sta->staMac), add_sta->status);
|
|
|
|
|
|
wma_send_msg_high_priority(wma, WMA_ADD_STA_RSP, (void *)add_sta, 0);
|
|
|
|
|
|
- return;
|
|
|
+ return status;
|
|
|
}
|
|
|
|
|
|
QDF_STATUS wma_delete_sta_req_ndi_mode(tp_wma_handle wma,
|