While processing cfg80211 callback testmode_cmd(), size of vendor
attribute TM_ATTR_DATA is not validated against the maximum length
but type casted to the internally defined structure pmo_lphb_req.
This can lead to out of bounds access if the size of attr is less than
size of pmo_lphb_req.
To address this, validate size of TM_ATTR_DATA.
Change-Id: I83b18d0935ebc6139644c02a9e51ef25a12b9176
CRs-Fixed: 2411653
For FILS based authentication, KCK is not derived. Hence
when GTK Offload feature is enabled, supplicant will not
pass it to driver with gtk rekey data. Putting a check
to validate KCK before copying it to the gtk_req structure.
Change-Id: I7089011b4d3fdc4e4785adbe10de651a1b59a121
CRs-Fixed: 2414445
With new scan module there is no need for LIM to send msg
eWNI_SME_CSA_OFFLOAD_EVENT to CSR to flush scan cache.
Lim can call the scan flush API directly.
Change-Id: I30390a7a6407ab24089b735f55ded1aa354fc17e
CRs-Fixed: 2417852
Currently, the scan is rejected if roaming in progress on STA or
if a client of SAP is in the middle of WPS/EAPOL exchange. And
it uses last_scan_reject_timestamp and reset scan_reject_cnt to
avoid scan stuck issue. last_scan_reject_timestamp and
scan_reject_cnt reset when the next scan issues successfully.
If:
1\ Scan happens and roaming is in progress on STA or client of SAP is
in the middle of the WPS/EAPOL exchange. Initialized
last_scan_reject_timestamp and reset scan_reject_cnt;
2\ Maybe no scan happens for a long time;
3\ scan happens but unfortunately, a connection is in progress again.
Then false alarm may happen because the time has already expired and
scan_reject_cnt >= 15.
Reset scan reject params after successful set key and successful roam.
Change-Id: I1197e66483e3bc8da38d6bcbc8b8c32b193ef6c9
CRs-Fixed: 2418658
1) Refine the documentation text of 4 ini items:
gStaKeepAlivePeriod
gApKeepAlivePeriod
gChannelBondingMode5GHz
gChannelBondingMode24GHz
2) Fix a discrepancy which happens when ini cfg values
are converted from those defined in enum
eIniChanBondState to the corresponding values in
enum ePhyChanBondState.
3) Use the related APIs to setup channel bonding modes
instead of directly assigning values.
4) Remove the redundant inclusion of the following two
header files in csr_api_roam.c:
cfg_ucfg_api.h
wlan_mlme_api.h
Change-Id: I43c1e5a05bbb34952a5c7bdbde734f4014592c12
CRs-Fixed: 2416991
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within pmo replace any such comparisons with logical
operations performed on the pointer itself.
Change-Id: I3697ede27e074252017e31be23caa93fc25885c5
CRs-Fixed: 2418398
STA vdev is moved to UP state in wma_add_sta_req_sta_mode but
if deauth is received from AP during that time the connection
is set to failure in lim_process_sta_mlm_add_sta_rsp and driver
send EV_CONNECTION_FAIL in UP state which is not handled.
To fix this move the STA to UP state only if
lim_handle_sme_join_result receive the add sta rsp success.
Change-Id: Icb0685e52881563e17785c98e9e225796a864be1
CRs-Fixed: 2415194
Disable QCA_LL_TX_FLOW_CONTROL_V2 for QCS405, for SCC imbalance issue:
when there is a vdev running TCP RX traffic, another vdev is running
UDP/TCP TX, the UDP TX vdev will be paused/unpaused frequently and
interfered by the TCP RX vdev, which is sending few TCP ack frames and
it's never get paused, successfully sending TCP ack will trigger more
TCP data packets from peer which compete with the UDP TX vdev for channel
access. When disable QCA_LL_TX_FLOW_CONTROL_V2, no vdev could send
packets to firmware when the tx_desc is in shortage, which makes the
throughput between vdevs more balance.
Change-Id: I2c4a36dae9a81905e6b92a80db9703a7342742c8
CRs-Fixed: 2376550
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pLinkSpeed to be
compliant.
Change-Id: I04db9da2cba615d9a216a9eab40d1a07c73c33fb
CRs-Fixed: 2417587
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier p2pNoA to be compliant.
Change-Id: Ia43f9794d94c37457c13fee5aafc7a7bd14de48f
CRs-Fixed: 2417586
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier updateIE to be compliant.
Change-Id: Id63bc75edf91d364de53eccc021917d597da400f
CRs-Fixed: 2417585
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier macAddr to be compliant.
Change-Id: I73573fced510fe2e4d6a30deacd2d3cef0187ee1
CRs-Fixed: 2417584
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier macAddress to be compliant.
Change-Id: Idc9e4bf34a29859a66ff559fdbe4f2d1c18d6d98
CRs-Fixed: 2417583
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier pmacAddress to be compliant.
Change-Id: I12040f02b81ae3430a31bb3ee0e1305300f0017b
CRs-Fixed: 2417582
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier customMacAddr to be compliant.
Change-Id: I374e45b5b2a0feb570e071ca54f13a97638628ae
CRs-Fixed: 2417581
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wifiBand to be compliant.
Change-Id: I686a6b1353462605381fdde206bd086fae16b140
CRs-Fixed: 2417580
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier assocReqlen to be compliant.
Change-Id: I941abbf4b90ea4a5cf167739d8f6905957b88da5
CRs-Fixed: 2417579
Coex priority on some scenarios need to be updated.
Host will transfer the chosen coex config attributes
by WMI command.
Change-Id: Ic28ad6af462b305ec9aaf3027d76bce9ae6320b1
CRs-Fixed: 2410493
Extract and populate peer stats in HDD and then send the stats to the
userspace via station_info in get_station command
Change-Id: Ia0077aadd33095210b1022a8e5a4ba77e9a9b739
CRs-Fixed: 2397649
qcacld-2.0 to qcacld-3.0 propagation
There's race condition between kickout event and disconnect command. It
cause disconnect_comp_var is not completed properly. Add check in
lim_tear_down_link_with_ap to eliminate the race condition.
Change-Id: Iebe98911cc41e8b33f8f403b75c79a75a38ca0a6
CRs-Fixed: 2417753
Currently the permission of the power_stats debugfs file is set to 0440.
This prevents the dumpstats to dump the stats.
Change the permission to 0444.
Change-Id: I725d1085bf0f186326eacf37d8d785b65cb699f4
CRs-Fixed: 2415906
driver module has been stopped since long time no interface is up
and dp_soc handle has been freed, but one virtual interface operation
still try to access invalid dp_soc from gp_cds_context, panic
happened.
set gp_cds_context->dp_soc to NULL if dp_soc is detached.
Change-Id: Icb2aa8bb15e309d8fcc749bafe37253c82a21f36
CRs-Fixed: 2413720
Fix resume issue while SSR in progress. When firmware goes down
while driver is in suspend state, fix driver resume(wmi fail) issue.
Change-Id: I5521b92a0a14382a8e1e4b4172e3ed91ad5d93a8
CRs-Fixed: 2412130
The driver currently defines two different data structures to hold
PLM Request parameters:
- legacy struct plm_req
- unified WMI struct plm_req_params
To align with the converged software architecture remove the legacy
definition and exclusively use the unified WMI definition.
Change-Id: I7675686aba9590a4507a8f9ebffcbf181ee00a21
CRs-Fixed: 2411817
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pFTAssocRsp to be
compliant.
Change-Id: Id619aa35893786db87abf264d4fd372c03425cac
CRs-Fixed: 2417251
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pFTAssocReq to be
compliant.
Change-Id: I1c80ae905381a7faf0afa6a83e43c7118855edce
CRs-Fixed: 2417249
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pMgmt_frame to be
compliant.
Change-Id: I3b01eb6fa7e60d76b0722db650a9467fa30d23d0
CRs-Fixed: 2417248
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier connectedCipherAlgo to be compliant.
Change-Id: I2accfa86266cd87c4f09de06db8c5e1cc9fb26b3
CRs-Fixed: 2417247
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier aniHdr to be compliant.
Change-Id: I230878a0694662f9556eff3c91cabc3919bbe45d
CRs-Fixed: 2417246
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pCsrRoamInfo to be
compliant.
Change-Id: I481aa5527f8687ffbeb6e2b6e0927f7449e0633f
CRs-Fixed: 2417245
The current implementaton of hdd_indicate_unprot_mgmt_frame() has a
few issues:
- It has identifiers with mixed-case and Hungarian notation
- It has in-function conditional compilation
- It has a series of adapter sanity checks rather than utilizing the
centralized adapter sanity checking function
So refine the function to address these issues.
Change-Id: I4b623b936e869205d9f6b888e445432ec0bd0478
CRs-Fixed: 2417244