From b5e4315435015fbeab81a364d290bb9c2ecebe42 Mon Sep 17 00:00:00 2001 From: Ferry Zhou Date: Mon, 16 Jan 2017 10:56:21 +0800 Subject: 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 --- CORE/HDD/src/wlan_hdd_tx_rx.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3