Since AVOID_FREQUENCIES event might be needed even when
FEATURE_WLAN_CH_AVOID is disabled,
always enable QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_INDEX in the
cfg80211 event list.
Also function wlan_hdd_send_avoid_freq_event() which is used to send
AVOID_FREQUENCIES event to user-space is always compiled in.
Change-Id: Ied011c309b38fa43e847eb125728e681df4ceca4
CRs-Fixed: 2045120
Use CDP API to configure the interrupt in cds open / close.
CDP API is mainly introduced to call detach interrupt before HTC
stop in cds close routine. This avoids race condition on interrupt
trigger.
Change-Id: Ib9a8e4014ad0bb5e3d1a691121c1069faa8c91e8
CRs-fixed: 2046062
In HDD STA_ID is being incorrectly used. This change fixes
following two issues:
1) 0 is treated as invalid STA_ID.
2) In hdd_get_transmit_sta_id function, value of INVALID
STA_ID is used as indication for MC/BC packet. This should
rather be a check against status returned from get_sta_id API.
Change-Id: I1710a73b8698c0fd4c537af35f947293c9ab623d
CRs-Fixed: 2039010
In hdd_wlan_start_modules() failures after cds_pre_enable are not handled
properly, this leads to freed data structures access during next module
start because driver state is still set to opened state. Add fix to
properly handle failures after cds_pre_enable by 1st doing cds_post_disable
such that FW is PDEV suspended, SoC is reset, ce tasklets are killed and
interrupts are disabled before calling cds_close() because cds_close()
frees host posted buffers to FW and if FW is not PDEV suspended and host
frees posted buffers this can lead to SNOC errors and unknown HLOS memory
corruptions. Also change the driver state to closed state before doing
cds_close such that when next hdd_wlan_start_modules() comes then driver
gets re-opened and re-enabled properly.
Change-Id: I5abfa3c782480d130d7fd3f9087f7a071e4a3f70
CRs-Fixed: 2007845
Add PMO changes to configure and clear default packet filters
over suspend and resume.
Change-Id: Icd0acdbb58bebb5726a4213b13db59fe083835a5
CRs-Fixed: 2034398
Modify the legacy LRO implementation which is in HDD to
use the implementation in QDF instead. This is to avoid
code duplication and to unify the LRO implementations for
Napier and Helium.
Change-Id: Ie9d3bb6d3dcda5a7d1d5fda6e7cbdef92be30461
CRs-Fixed: 2042812
In hdd_wma_send_fastreassoc_cmd function we are directly invoking UMAC
messaging rather than calling an SME API. Implement SME API that can be
called from hdd_wma_send_fastreassoc_cmd and take care of messaging.
Change-Id: I2924da44e6b5e31e741a8816cf7afea293225219
CRs-Fixed: 2050646
If wlan is unloading when iperf is running, iperf
will call wmm select and check whether it's in
loading/unloading status, if yes, it will send the
following log to user space via wlan logging thread:
'Unloading/Loading in Progress. Ignore!!!';
These logs are printed too frequently, which will
cause watchdog bark.
To fix this issue, remove the log in:
wlan_hdd_validate_context();
Propagated from cld2.0.
Change-Id: I4130ae9bc4693f5b8dd37a2af5f95e90800303cd
CRs-Fixed: 2034385
Invalid ipa suspend pipe indication is going to firmware
due to invalid handling of sap_num_connected_sta counter.
Prevent invalid ipa suspend indication to fw when ipa
pipes are down.
Propagation from qcacld-2.0 to qcacld-3.0.
Change-Id: Id7ac76bedc20aac39199e14b7042cfb58ba255fe
CRs-Fixed: 1036471
Rssi value is set to zero in mgmt frame ind
sent to sme via lim_send_sme_mgmt_frame_ind
in few cases.
Fix is to send rx rssi normalized value.
Change-Id: Ie8731dc2968fdfe4503266039f4753405db1b8ce
CRs-Fixed: 2032629
Update uevent status to hdd, based on the uevent received
from the platform driver
Change-Id: I1ac0fa61efa8b7f4f9d5e4e6abfcf969dbc1c592
CRs-fixed: 2027958
Platform driver icnss can provide uevent notification like FW
ready & FW crashed. Register the call back for notification and
update driver state for FW crashed indication so that driver
doesn't have to wait for shutdown call back to know FW crashed.
CRs-fixed: 2004309
Change-Id: I48afe8e023107aba8362324e3adabf6d50996b67
When NDI create and delete are repeated multiple times NDI create
crash second times due to MC thread getting stuck in infinite loop
within function csr_scan_append_bss_description. This function is
not applicable for NDI profile type. This patch fixes this by avoiding
csr_scan_append_bss_description for NDI mode.
Change-Id: If63068e214fa546f1ed015a99ed5b2f95298b39b
CRs-Fixed: 2044704
Expose the new QDF timer multiplier APIs via a new ini configuration
item, gTimerMultiplier.
Change-Id: I76f86f1488f4335dc7f1f128e1469f3f4cf32645
CRs-Fixed: 2049308
There were several suggested improvements to the previous WoW event
handler refactoring. Address these recommendations in this follow-up
commit.
Change-Id: Id7a67f63c681bda8453b46451388a168d268bc0c
CRs-Fixed: 2040961
We want to enable 64-bit DMA support only on a select platforms. If the
flag CONFIG_FORCE_ALLOC_FROM_DMA_ZONE is set on a platform, it indicates
that the platform supports 32-bit DMA only. We can use this flag to
enable ENABLE_DEBUG_ADDRESS_MARKING flag in the WLAN driver. This flag
ENABLE_DEBUG_ADDRESS_MARKING, when enabled, allows WLAN driver
to process DMA addresses > 32 bits.
Disable ENABLE_DEBUG_ADDRESS_MARKING when
CONFIG_FORCE_ALLOC_FROM_DMA_ZONE is set for a platform.
Change-Id: I48afcc240d21fe9486c2bdf0f572b8b8d3e3cd71
CRs-Fixed: 2052030
It will clean session id at then end of cfg80211 stop ap and won't set
flag SME_SESSION_OPENED after sap session started, which case session
for P2P GO can't be closed properly.
Change-Id: I0c6f21f3616ededd9e827b3eac9cbbe2c26bc60c
CRs-Fixed: 2050994
Fix memory leaks in csr_save_profile by freeing all buffers within
saved cmd allocated within this function.
Change-Id: Ie06c91b145165df21992829883be11932871550d
CRs-Fixed: 1116619
Propagation from qcacld-2.0 to qcacld-3.0
Currently even for non local ARP requests wake lock is getting
acquired which is preventing the system suspend which is a power
penalty. Do not acquire wake lock for the non local ARP requests.
Change-Id: I5fcd0cf0edc5c28a4662ae49a33cc55a77f3d3e4
CRs-Fixed: 1088974
Fix csr_is_auth_type11r to return correct value for open security
when MDIE is not present in beacon or probe response.
Change-Id: Idad01f9f708776f40514cac81d6c007eb6e53a00
CRs-Fixed: 2035374
Logging thread creates the bug report spinlock initially.
ifconfig thread tries to create the same spinlock
again, this leads to change in spinlock magic.
Create and Destroy the same lock on insmod/rmmod only.
CRs-Fixed: 2033886
Change-Id: Iea2fe4f9bd47b0d7f4ad1a176a361bac242b9d4d
In Vdev start response if due to some reason host fails it doesnt
send vdev stop to firmware to mark vdev as inactive. Due to this
when delete vdev is received by firmware it crashes.
To fix this send VDEV STOP to firmware if vdev start response fails
in host.
Change-Id: I170265069d7e92b091397a63972575bfe7c9ef6d
CRs-Fixed: 2038379
Caller pass an allocated memory to u_mac_post_ctrl_msg, but memory
is again allocated in u_mac_post_ctrl_msg before passing it to message
queue.
This change remove this duplicate mem allocation and use the memory
passed by the caller.
Change-Id: I4d329c5883832bb6571d1e81f0d9b9a044ebb6d9
CRs-Fixed: 2050449
If QCA_WIFI_3_0_EMU DS params is set for all channels.
To fix set DS params only in 2.4 Ghz channels.
Change-Id: I859b56080f55428c27aacf3fea25223c8931c960
CRs-Fixed: 2045226
Currently, function variables in csr_send_join_req_msg and
csr_roam_connect uses stack and are consuming much of the stack
eventually reaching the stack end quickly.
To avoid stack consumption issue, mem alloc function variables
instead of using stack.
Change-Id: If6fecb7f7ca9a31fdda2ea12d40a110e6c238508
CRs-Fixed: 2045315
During wlan disconnect, after sending del bss indication to firmware,
host expects vdev stats indication from firmware to update rssi
value of current disconnect AP and to return same to upper-layer if
getRSSI is received after disconnect. But presently, due to invalid
condition check, Host failing update rssi value.
If VDEV is up and BSSID is zero, get RSSI from vdev stats indication
and update the same in HDD. So that driver can return valid rssi to
upper-layer, on receiving getRSSI indication after disconnect.
Change-Id: I0554e513535bc033ea3bfe5021b5f8ddc108ffbe
CRs-Fixed: 2047842
Add support of sending fw_log_mode to WLAN FW for QCA6290. WLAN FW
will decide whether to push its debug log through DIAG or not based
on this value.
CRs-Fixed: 2046631
Change-Id: I6c4ec8dbd65f8fc034381770bdef7e145b1d2b6a
1. Remove unused variable of type ol_txrx_stats_req
passed through cdp_txrx_stats api to avoid
compilation break.
2. Add dp_stats file to the Kbuild. This file is
used to collect HTT Statistics for Lithium based
chipsets.
Change-Id: I0252c996d47cc866291d25f35eb9bb9e19073a8b
CRs-Fixed: 2050798