When sending an MSCS action frame to from SME to PE module, there is a
potential NULL pointer dereference. Add check to ensure BSS descriptor
is valid before copying it into the message.
Change-Id: If6d114cb923e5bd283a342ba2b136ce75c9a26b4
CRs-fixed: 2830747
Currently connect failure is not handled for connection
manager, add logic to handle connect failure path for
connection manager.
CRs-Fixed: 2829679
Change-Id: Ie60090fb0d469850ab9e1ab422d7713a4bfa6acf
Remove csr_roam_save_security_rsp_ie() which is using
unused variables pWapiRspIE, nWapiRspIeLength,
nWpaRsnRspIeLength, pWpaRsnRspIE. Also remove
the functions which are used to get the value of
these variables.
Change-Id: I526fd492e98c119c51f760f7bfb58f454e5bebdf
CRs-Fixed: 2829557
Currently max value of gEnableModulatedDTIM is 5 which is
incorrect as FW supports maximum no. of modulated DTIM as 10.
To address above issue update max value of gEnableModulatedDTIM
ini.
CRs-Fixed: 2830240
Change-Id: I7f1cab6f0cb2b2a60e7cc1bb37a9971c1752a1bb
Enable ll stat support on Genoa to satisfy the kernel/driver
interfacing requirement imposed by msm-5.4.
Change-Id: I7a1e52908cd8a6d818070c51234ad3c8f1f54c55
CRs-Fixed: 2830079
Replace hdd_objmgr_get/put_vdev by new API hdd_objmgr_get
and put_vdev_by_user to specify functionality dbg id.
Change-Id: I217d503b30fb26d07644678fff4045fee22a849c
CRs-Fixed: 2830030
Backport flag CFG80211_EXTERNAL_AUTH_AP_SUPPORT is used to support
external auth in AP mode with older kernels. As the changes are
present in latest kernels, there is no need of this backport flag.
SAE PMK caching doesn't work on new kernels(e.g.: kernel-5.4) as
this backport flag is missing in latest kernels. So, avoid
checking for the same on new kernels.
Change-Id: Idc8858e7cff383e47196e2c94c66db40b5b98a3d
CRs-Fixed: 2807664
Previous logic:
While reporting beacon reports a maxmium of
7 Dot11fIEMeasurementReports are sent in one
mgmt frame.
New logic:
Calculate the max number of frames that can fit
in one mgmt frame and add them to the report.
Change-Id: Ic413c94ea1f012a647dfd7cd21b13bc123ebfd97
CRs-Fixed: 2809395
With perf kernel config file, it usually will not
set CONFIG_DEBUG_FS=y, which will cause implicit
declaration of function 'hdd_debugfs_process_mib_stats'
such compile error. And MIB STATS feature also depend
on debug fs, so enable it as long as CONFIG_DEBUG_FS=y
Change-Id: Ice1ddce07eb5eb251e766d3952ca15b00321b3b2
CRs-Fixed: 2829413
There is race condition is in-between "nud failure
sme_roam_invoke_nud_fail" and "bmiss disconnecting process".
Thread 1: Nud failure will check the roam state -
"MLME_IS_ROAM_INITIALIZED"
Thread 2: bmiss disconnecting will set roam offload state to
"deinit" and set the "roam_invoke_in_progress" false.
Thread 1: trigger roaming cmd to fw and set
"roam_invoke_in_progress" = true
Then drv couldn’t get "roam_invoke_in_progress" cleared and
get all the scan blocked.
The thread 2 (scheduler thread) has acquired the sme lock
during handling BMISS.
Fix by add sme lock in sme_roam_invoke_nud_fail to protect
the roam state check and set roam_invoke_in_progress = true.
Change-Id: Ibb73c19e06e248b63795c9bfc6db0d99bc702b44
CRs-Fixed: 2829101
Mem leak in tx ack work handler.
Free allocated memory in wma_data_tx_ack_work_handler()
Change-Id: Id79072902ac43a60998624429872a2a489cecbf1
CRs-Fixed: 2828030
Sometimes firmware sends WMI_ROAM_STATS_EVENTID repeatedly with
wrong TLV. This causes event extraction failure at the event
handler and continuous error logs are written to kmsg.
Rate limit debug level prints in wma_roam_stats_event_handler()
Change-Id: I03c1a50198d26096333d9b42190b34204453155a
CRs-Fixed: 2829293
Currently when Adaptive 11R feature is disable via ini
then user space parse Vendor Specific IE and trigger
connection in FT-PSK/EAP based on STA configured key
mgmt, but due to feature disabled via ini it failed
to connect AP and trigger Assoc reject to user space.
To overcome this advertise Adaptive 11R supported feature
bit to user space and based on this feature bit user space
parse, trigger connection in FT-PSK/EAP other wise fallback to
PSK/EAP.
Change-Id: I5d67a0cb77c3f39328467a6313a7a795e6a7a4d8
CRs-Fixed: 2785878
At present when user trigger SAP move to unsafe channel,
driver doesn't reject the request since "strict = false"
and unsafe checking is skipped.
Fix by check SAP channel switch target channel safe or
unsafe with API policy_mgr_is_sap_freq_allowed before
perform channel switch.
Change-Id: I2950fb31346df8705c8fc608fd79e1a44f4d4947
CRs-Fixed: 2826619
Stop/Reject SAP connection if STA is/comes up
on a 6ghz freq and SAP is not capable of 6ghz
freq to avoid MCC situation in a non-DBS capable
HW.
Fix is to stop/reject the SAP startup in above
mentioned case.
Change-Id: I451c95929f378cd0790bd5fc647235fc2dd0071a
CRs-Fixed: 2818030
Sometimes firmware sends WMI_ROAM_STATS_EVENTID repeatedly with
wrong TLV. This causes event extraction failure at the event
handler and continuous error logs are written to kmsg.
Replace error prints in wma_roam_stats_event_handler() with
debug level prints.
Change-Id: Iba03e22239281a921cfcab4a37eba2894ec006f4
CRs-Fixed: 2826127
In sme_soc_set_dual_mac_config(), when fail to enqueue the sme command,
it should not return success; otherwise, the calling functions may wait
for the response(eWNI_SME_SET_DUAL_MAC_CFG_RESP) even when no command
is issued.
Change-Id: I8ac68ce6bb13aff47782caf944982ea4faaee2ba
CRs-Fixed: 2826511
In OWE transition mode, the beacon from the transition mode AP
should be dropped after sending unicast probe to avoid kernel
entry for BSS with null ssid. But while parsing the IE, the
frame pointer passed points to the fixed fields.
So pass the ssid IE pointer to the OWE transition mode IE
parsing API.
Change-Id: I668bc2dfc32a5a23b44da50ac81bac98250faa2a
CRs-Fixed: 2814173
Verify the status returned by cfg_parse() function after parsing
the wlan ini file.
Change-Id: I89b44dec614130ee8a6e5af19cea85e47fd53d64
CRs-fixed: 2826976
FW updates the mgmt tx packet status to host using tx complete event,
enum WMI_MGMT_TX_COMP_STATUS_TYPE. Presently host checks for enum
WMI_MGMT_TX_COMP_TYPE_COMPLETE_OK as mgmt tx success and for rest all
status enums treats as NO_ACK. As FW can drop mgmt frames and updates
host with WMI_MGMT_TX_COMP_TYPE_DISCARD or WMI_MGMT_TX_COMP_TYPE_INSPECT
which is not equivalent to NO_ACK.
Hence update proper value of mgmt tx complete status in host from the mgmt
tx complete event.
Change-Id: Id507a85c4b4dec407eae0626488b92e4db5eb5ec
CRs-Fixed: 2827138
If the channel bandwidth is not 80+80, then the channel freq segment1
of the current session will become 0. When api is called to get freq from
channel num it shows error msg invalid channel num 0.
To avoid the above issue, add a check for invalid channel number before
calling the api to get freq.
Change-Id: I7bd0748be04181d4e59935b0f9111d582ca31e3c
CRs-Fixed: 2820653
The WEP security also use the open mode(key_mgmt is NONE), but
it will return directly if it is unicast and missed to call
csr_roam_issue_set_context_req() and then make the WEP unicast
data transfer fail.
So change to call csr_roam_issue_set_context_req() in this case.
Change-Id: I7f81bc2975ac61d6bfe80af27eb38eb783cae8e9
CRs-Fixed: 2826978
Recently NAN UDP/TCP checksum offload INI is added
but corresponding DP cfg entry is missing.
Add NAN UDP/TCP checksum offload DP cfg entry.
Change-Id: I9c6549cbe4cb9e67a538c0743d99404b515e2006
CRs-Fixed: 2815904