summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerry Zhou <tianguiz@codeaurora.org>2017-01-16 10:56:21 +0800
committerFerry Zhou <tianguiz@codeaurora.org>2017-04-28 17:18:44 +0800
commitb5e4315435015fbeab81a364d290bb9c2ecebe42 (patch)
treea3152691fc44e1cf26bfa03ed985ebf2c512a715
parent344e641707dac46705eb7026d01e900615d1a033 (diff)
qcacld-2.0: Fix IPv6 tx failure under 11p mode
Under 11p OCB(Outside the Context of BSS) mode, WiFi works like ethernet that there is no need to authenticate and associate STA with the AP. It just send packet out and the peer STA can receive it when they are on the same channel. This fix makes driver send out packet directly by bypassing the check whether STA is in association with AP. It's outside the context of basic service set. Change-Id: Id4f830e027b0a09cbacb3d92e111f017db47c485 CRs-fixed: 1111683
-rw-r--r--CORE/HDD/src/wlan_hdd_tx_rx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_tx_rx.c b/CORE/HDD/src/wlan_hdd_tx_rx.c
index 999c9d311834..9b6ecfbff666 100644
--- a/CORE/HDD/src/wlan_hdd_tx_rx.c
+++ b/CORE/HDD/src/wlan_hdd_tx_rx.c
@@ -427,6 +427,8 @@ static void hdd_get_transmit_sta_id(hdd_adapter_t *adapter,
*/
if (mcbc_addr)
*station_id = IBSS_BROADCAST_STAID;
+ } else if (adapter->device_mode == WLAN_HDD_OCB) {
+ *station_id = sta_ctx->conn_info.staId[0];
} else if (adapter->device_mode == WLAN_HDD_NDI) {
/*
* This check is necessary to make sure station id is not