Add support to compile new dp_rings_main.c file.
This new file is having refactored code of all the DP rings.
Change-Id: I7cd467df8d3f7c4b60d448c88b5cedc76cd62b07
CRs-Fixed: 3423636
wmi_handle is retrieved from psoc handle, validate the same before
dereferencing to avoid any invalid access.
Change-Id: I58c566e1b94c5ba2cd4d74ad4406545ffb39e36e
CRs-Fixed: 3434869
WEXT ioctls are no longer supported by the wlan driver.
So, add a sysfs replacement to setdfsnol and getdfsnol commands.
file path: sys/class/net/wlanxx/dfsnol
where wlanxx is the adapter interface
usage: echo arg_0 > /sys/class/net/wlanxx/dfsnol
cat /sys/class/net/wlanxx/dfsnol
Change-Id: Ia8475b5c6ef39142def38eab0e777840af885c33
CRs-Fixed: 3431517
Update puncture bitmap along with channel to upper layer when channel
or puncture bitmap changed.
Change-Id: Idc0ffbd4358c328ba22453c6b523843c8d4fc486
CRs-Fixed: 3436336
Driver uses global value cac_state in mac_ctx->sap.SapDfsInfo
to record the CAC state of first SAP on DFS channel. If
first SAP CAC is completed, the second SAP can skip CAC
on the channel.
The problem is single SAP stop and restart the cac_state is
not updated and keep value of eSAP_DFS_SKIP_CAC. Then driver
skips the CAC for the SAP start.
Remove the global value cac_state in mac_ctx->sap.SapDfsInfo
and use API sap_plus_sap_cac_skip to check the other SAP's CAC
state dynamically.
Change-Id: Id486a6e605d08845f03b38450a2c021f76ae23f6
CRs-Fixed: 3426671
Currently hdd_get_sap_adapter_of_dfs() only check home channel is
DFS or not, but didn't consider other channel in bandwdith.
It caused can't get SAP adapter which home channel is non-DFS but
channel in bandwidth has DFS channel.
Update this function to check DFS with channel frequency and bandwidth.
Change-Id: Id12a73ac01d20116463718fe7cc66c46efad37e4
CRs-Fixed: 3422944
Previously the function wma_handle_btm_blacklist_event() was removed
by:
qcacld-3.0: Cleanup ROAM_TARGET_IF_CONVERGENCE usage
Change-Id I6973d9c366ec6a9c6164dd19f6f4775dd3ebf5f0
However, the prototype was left behind.
This prototype was renamed as part of:
qcacld-3.0: Replace blacklist/whitelist for denylist/allowlist
Change-Id I9ba61dde3b3ea008ca3777448d1f8dab83d33ec1
But this is still a prototype without a function, so remove it.
Change-Id: I7b9ad27e7f9fd3195bbae77c07104a0ee4764e0b
CRs-Fixed: 3434500
A prototype for wma_register_roam_vdev_disc_event_handler() was added
by:
qcacld-3.0: Process Disconnect request from FW
Change-Id Ic1e83aace48a3e8424f23641b0e77c66f4283587
However, no actual function was added, so remove the prototype.
Change-Id: I4c6f41f93bb80f733031f4a77a94ee0b4cad6f1c
CRs-Fixed: 3434499
When fast reassoc command is received with bssid
and channel frequency set to zero, if no candidate
found, STA DUT should disconnect.
Currently STA DUT stays on the same AP.
Fix is to add bssid zero check and disconnect from
current AP.
Change-Id: Id6a26703929f7783e852bb42eebd57f5d5ba8b13
CRs-Fixed: 3433308
Current code doesn't allow output of hdd_dump_log_buffer to sysfs.
Fix this by adding sysfs output functionality.
Change-Id: I077c10e379e542ac99d8ebe01d68fe76a7470e39
CRs-Fixed: 3426193
Current code has hdd_dump_log_buffer and hdd_ioctl_log_buffer in
wlan_hdd_wext.c. This will not be included in build if wext is not
enabled. Fix this by moving the functions to wlan_hdd_ioctl.[ch].
Change-Id: Idb4824815890c605961e802e0d5a43ca2181a13d
CRs-Fixed: 3436349
Currently, policy_mgr_is_ll_sap_present api is used to check if
ll sap is present or not but different operations may be required
for HT and LT LL AP policy example for LT policy i.e gaming/loss
less audio MCC is acceptable but for HT MCC is strictly prohibited.
So, wrapper functions are added to check HT, LT and any AP policy.
Change-Id: I93dbcd65b1a102d0f879366db26f3d2cf01e030e
CRs-Fixed: 3435203
Currently the ini gStaKeepAliveMethod doesn't support
Unsolicited ARP response packets. So, add it.
Change-Id: I614e87e7f173ea5c25c34eaf56de0805d37b26a4
CRs-Fixed: 3433020
In STA+P2P-GO DFS SCC concurrency when INI
g_move_sap_go_1st_on_dfs_sta_csa is set, the movement of P2P-GO / SAP
is reversed. i.e. upon getting CSA on STA interface, P2P-GO will move
first before STA's movement.
SCC is enforced after STA moves and observes 1st beacon on the new
channel. Add check here to avoid call to legacy flow of restarting
SAP / GO as this has to be triggered only when 1st beacon is observed.
This is applicable only for special case where SAP / GO moves 1st
before STA's movement.
Change-Id: I7e804a0f7e7d4c4739f05f68f471184503ca2930
CRs-Fixed: 3431391
Currently utils_mlo.h is not present in lim_process_auth_frame.c
which may cause compilation issue because headerfile
is used in some files.
Change-Id: Icfb63c33bcd14c6cfd19828f95d29320ebf13356
CRs-Fixed: 3433968
Current code doesn't allow for custom print output for
hdd_dump_log_buffer.
Fix this by adding ability to pass custom print function.
Change-Id: I6a32008d8c18dbe02aada520d0e0bb168949ba80
CRs-Fixed: 3426192
Current code does not have a way to abstract printing to sysfs file
resulting in duplicate code when wanting to add sysfs output to
existing functionalities.
Fix this by creating API which allows for easy printing to a sysfs
file and is compatible with qdf_abstract_print.
Change-Id: Ide71dc1e5f869f03ce66500eed50bb55781dc228
CRs-Fixed: 3426189
At continuous physical address limited telematics platform,
in order to avoid occasional memory alloc failure with big
kzalloc size, it's better to use virtual memory allocation
API instead. And below items will be refined to replace
malloc with valloc if CONFIG_ENABLE_VALLOC_REPLACE_MALLOC=y.
1 x 60432 = 60432B @ pe_open:829 mac_open+0xcc/0x160 [qca6698]
Change-Id: I6ffcc83e3f51a89b04661535cf9b8803dd9f0569
CRs-Fixed: 3435173
Currently hdd_medium_assess_init() and hdd_medium_assess_deinit()
are being invoked from hdd_hostapd_sap_event_cb. Timer counter is
not being incremented properly for multiple SAP concurrencies.
Hence seeing assert during the timer deinit.
To address this issue invoke hdd_medium_assess_init() explicitly
from wlan_hdd_cfg80211_start_bss , wlan_hdd_start_sap and
hdd_restart_sap.
Change-Id: I03b2567fd25119ff82f2c85939c31eb0ccf6cdb7
CRs-Fixed: 3432439
Functions wma_roam_synch_event_handler() and wma_roam_event_callback()
were removed by:
qcacld-3.0: Cleanup ROAM_TARGET_IF_CONVERGENCE usage
Change-Id I6973d9c366ec6a9c6164dd19f6f4775dd3ebf5f0
However, the prototypes were left behind, so remove them now.
Change-Id: I53970271698425093abd3d96f8c03b8eef0bbb60
CRs-Fixed: 3434498
Function wma_stats_event_handler() was removed by:
qcacld-3.0: Remove legacy implementation of stats event handler
Change-Id I9a892b5f7486a406654256fc2cc8177f2fafe790
However, the prototype was left behind, so remove it now.
Change-Id: I8eba9a888c9dbb592b802fa3fd2e1fd0a824296d
CRs-Fixed: 3434497
The following patch replaced typedef tSirWifiPeerStat with a new
struct wifi_peer_stat that has member names that following the Linux
coding style:
qcacld-3.0: Replace typedef tSirWifiPeerStat
Change-Id I337e2329d544e0b6daf6650f826e736f2492ef30
As part of that change all instances of tSirWifiPeerStat::numPeers
should have been replaced with wifi_peer_stat::num_peers, but one
instance was overlooked in wma_peer_ps_evt_handler(), so fix it now.
Note that ideally the compiler should have caught this, but
wma_peer_ps_evt_handler() is conditionally compiled, and apparently
the WLAN_PEER_PS_NOTIFICATION feature is not enabled on any current
targets.
Change-Id: If7fc2d38886119f2e21413213ad386d2ad19e4f3
CRs-Fixed: 3431813
Function wma_wni_cfg_dnld() was removed by:
qcacld-3.0: Cleanup legacy cfg related files
Change-Id If46ae4c59f1010a655aa65e3502fc0c660e33cdc
However the prototype was left, so remove it now.
Change-Id: I35d5c578407492e213d9183275c68c8e011f5abe
CRs-Fixed: 3434496
There are several issues with wma_ds_peek_rx_packet_info():
1) The bSwap parameter is unused.
2) The other parameter identifiers used in the prototype do not match
the ones in the implementation.
3) The implementation is documented instead of the interface.
Fix these issues by removing the unused parameter, making sure the
other parameters match between the prototype and implementation, and
documenting the interface.
Change-Id: Ia9d68dbcc7093f14aec6519303c4318e950c4d2d
CRs-Fixed: 3433198
A typo was introduced by the following patch:
qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_main.c
Change-Id If55d52640dbe921377f1ceffed609e096f449563
One instance of WMA_LOGE(), in wma_motion_det_host_event_handler(),
was changed to wma_er() instead of wma_err(). This has gone undetected
since it is feature-specific code that is not enabled, and hence has
not resulted in a compilation failure. But this was detected manually
during dead code removal, so fix the typo.
Change-Id: I07b6b5792c1419a83ee1a735943b8375d22e71d8
CRs-Fixed: 3432958
Function wlan_cm_is_sta_connected() was removed by the following patch:
qcacld-3.0: Code cleanup for connection manager CSR
Change-Id I156b7ee286f666ee5d660312bf5ba2fe364165c4
However, the prototype was not removed, so remove it now.
Change-Id: Id23f14f1390c72e5f39cef3fbab2eacd6752dc1d
CRs-Fixed: 3430410
In some race-condition, the adapter entry in the
adapter list gets deleted midway between an iteration
over the same list via another thread. Accessing this
stale entry leads to watchdog timeout due to infinite
loop.
Fix this by breaking out the iterator if the next iterator
entry is same as the current adapter entry being held.
Change-Id: Id91cbc43474927faec72a9e0dcaa56e935ccf63d
CRs-Fixed: 3390966