summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbings <bings@codeaurora.org>2017-11-15 18:16:15 +0800
committersnandini <snandini@codeaurora.org>2017-11-18 13:21:15 -0800
commita20578fdada9df09a4e95d77fed8038b4e7f7b93 (patch)
tree8a96f959d834aaa10d12d1d007c873895e84c276
parent36bd1d670bb4f3f11730895ef690450019ad1a3d (diff)
qcacld-2.0: Add device_mode check in hdd_ipa_send_pkt_to_tl
Add device_mode check in hdd_ipa_send_pkt_to_tl, WLAN_HDD_GET_AP_CTX_PTR only can be used in SAP/P2P_GO mode. Change-Id: Ieb4ce8fb28251432c9f3e22eb945b32f47776380 CRs-Fixed: 2141328
-rw-r--r--CORE/HDD/src/wlan_hdd_ipa.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/CORE/HDD/src/wlan_hdd_ipa.c b/CORE/HDD/src/wlan_hdd_ipa.c
index 9a1d4f7daa5e..f169620f9d00 100644
--- a/CORE/HDD/src/wlan_hdd_ipa.c
+++ b/CORE/HDD/src/wlan_hdd_ipa.c
@@ -3450,12 +3450,15 @@ static void hdd_ipa_send_pkt_to_tl(struct hdd_ipa_iface_context *iface_context,
* During CAC period, data packets shouldn't be sent over the air so
* drop all the packets here
*/
- if (WLAN_HDD_GET_AP_CTX_PTR(adapter)->dfs_cac_block_tx) {
- ipa_free_skb(ipa_tx_desc);
- adf_os_spin_unlock_bh(&iface_context->interface_lock);
- iface_context->stats.num_tx_cac_drop++;
- hdd_ipa_rm_try_release(hdd_ipa);
- return;
+ if (WLAN_HDD_SOFTAP == adapter->device_mode ||
+ WLAN_HDD_P2P_GO == adapter->device_mode) {
+ if (WLAN_HDD_GET_AP_CTX_PTR(adapter)->dfs_cac_block_tx) {
+ ipa_free_skb(ipa_tx_desc);
+ adf_os_spin_unlock_bh(&iface_context->interface_lock);
+ iface_context->stats.num_tx_cac_drop++;
+ hdd_ipa_rm_try_release(hdd_ipa);
+ return;
+ }
}
interface_id = adapter->sessionId;