mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
qcacld-3.0: Drop packet if SAP is not started
Drop packet if SAP is not started to avoid abnormal state. Change-Id: If09abb0d03b4a34805178d4219ef479dd39b6418 CRs-Fixed: 2357973
This commit is contained in:
parent
c7cfd0c6e4
commit
389f591af8
1 changed files with 8 additions and 0 deletions
|
|
@ -482,6 +482,14 @@ static netdev_tx_t __hdd_softap_hard_start_xmit(struct sk_buff *skb,
|
|||
if (ap_ctx->dfs_cac_block_tx)
|
||||
goto drop_pkt;
|
||||
|
||||
if (ap_ctx->hostapd_state.bss_state != BSS_START) {
|
||||
QDF_TRACE(QDF_MODULE_ID_HDD_SAP_DATA, QDF_TRACE_LEVEL_INFO_HIGH,
|
||||
"%s: SAP is not in START state (%d). Ignore!!!",
|
||||
__func__,
|
||||
ap_ctx->hostapd_state.bss_state);
|
||||
goto drop_pkt;
|
||||
}
|
||||
|
||||
/*
|
||||
* If a transmit function is not registered, drop packet
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue