Update the logic to fix a potential memory leak when there is an
invalid country IE. Also update the logic to not reject the connection
in the case of an invalid country IE, since this is a bad user
experience.
Change-Id: I6a2b50a483e65554a6622dccbb0bac61331fc4fb
CRs-fixed: 2883385
Fix the PSD start freq calculation for sap case.
Also, remove duplication of 6ghz freq checks in
tpc power calculation api.
Change-Id: I5f1773b551ff7b893514b5c7720c6684fc100077
CRs-fixed: 2879460
INI parameters are configured based on requirement. It is expected
that atleast one parameter should be configured through INI file.
To mandate this, trigger assert when failed to parse atleast one INI
parameter from INI file.
Change-Id: Ia94f9ae9ce91d7e57f7a6be6c6f955de5ba860a4
CRs-Fixed: 2881695
For Generic Kernel Image builds kernel scripts take care of module
installation on required parition. Thus update wlan driver Android.mk
to not create symlink if WIFI_DRIVER_INSTALL_TO_KERNEL_OUT is set to
true by GKI enabled android build system.
Change-Id: Ie0b6de98ead5f7e5eba106f0a98901f6c7ee3861
CRs-fixed: 2881952
In certain case, the hdd_llstats_radio_fill_channels failed to
put more nl attribute for channel stats to upper layer.
Add validation of total channel stats number received from target
to avoid exceeding NUM_CHANNELS. And change error log to include
more debug information.
Change-Id: Ifaf3cf6cd643a3fe87bf7664727da19951f41e93
CRs-Fixed: 2865770
Host checks if firmware advertises Operating channel validation(OCV)
support bit in service ready then updates OCV flag in wiphy ext feature.
Change-Id: I92f872a07e6f7142e602e6a9e5f5edcecc0aab0b
CRs-Fixed: 2880821
rso config is not updated from connect profile and thus the PMF
required is not set and thusconnect fails with PMF required AP.
Fix is to update the rso config during connect req from profile.
Change-Id: I4a6ee6ef54358a59c169bf3f495483b3b4a105df
CRs-fixed: 2880665
Add a NULL check before calling rps_enable callback
from ipa_set_rps_per_vdev and also add a check to avoid
disabling rps twice.
Change-Id: Ib63b2cda99aa332905df640ffa2d401c22845ad2
CRs-Fixed: 2876490
Currently driver fills unicast, multicast & auth mode values from
csr session which is not updated after roaming to AP with different
security profile. This causes incorrect values in AP profile command.
Send correct authmode/unicast and multicast ciphers in AP profile
command to firmware.
Also modify the below 2 ini default values as:
candidate_min_rssi_for_beacon_miss=-75
candidate_min_rssi_for_disconnect=-75
Change-Id: I33cc9f516447071e977768f01738eea7a2ecd99c
CRs-Fixed: 2879943
When AP sends medium time as 0, currently driver proceeds to add
acm entry for the Add TS request and upgrades the AC for the TID.
But this behavior is not correct and seen with some AP.
Downgrade the AC to BE for the TID for which add TS with medium
time 0 was received and send ADD TS failure to SME.
Change-Id: Ia9247e06e3985d699f4215835a55a733738552cb
CRs-Fixed: 2864005
Host doesn't update vdev NSS value for NDI from mac config to
pe_sessions's vdev_nss member. Due to which host updates incorrect
preferred Tx and Rx NSS to FW in vdev start cmd for NDI interface.
Hence update proper NSS config from mac to pe_sessions's vdev_nss
member.
Change-Id: I5b7a4bdda3780e9a18e9954b64f03fa47a7dbe5f
CRs-Fixed: 2878203
Call qdf_check_state_before_panic with caller function name and
line number details.
Change-Id: I9fb4b382576e52bc1ad7e316bd09e3124e8fce98
CRs-Fixed: 2857671
Store the NAN NDI beamform service bit in the NAN capability struct and
add API to access that value.
Change-Id: I429fc870b5287bd40855b9277d14b19574974a46
CRs-fixed: 2876730
Beamforming is now supported by FW so extra capability checks can be
skipped if the service bit is set. Otherwise set the capabilities to
none.
This reverts commit If629eedeab5d35b1799c6eb5ee7d71726ada262a.
Change-Id: I4a62d43e8e3ecc985e663aa0c6eaec252d3241e9
CRs-fixed: 2874817
When SSR happens, Inform the user space about teardown all TWT sessions
in P2P client mode also.
Change-Id: I190529724519a2520dfa190fcb10cafc398745a5
CRs-Fixed: 2879404
As part of start_bss response, beacon structures are extracted
from pe_session and stored in bss_description. But non-beaconing
entities like NDI doesn't have a beacon and corresponding
structures in pe_session are not valid. Beacon structures
schBeaconOffsetBegin and schBeaconOffsetEnd contain 0 in such
cases. Calculation of beacon IE length from these would result an
invalid length and leads to invalid IE extraction from
bss_description later(from csr_roam_process_start_bss_success).
Check if pe_session has valid beacon entry to avoid this.
Change-Id: Ic78dfcdbfb83cb29437d46337d13d62df533d780
CRs-Fixed: 2876897
GETSTATSSTAINFO and GETSTAINFO cmds return the correct
mcbc counters in SAP+STA case with IPA disabled since the
host updates these stats during dp_rx processing.
With IPA is enabled the hdd callback invoked from the IPA
driver needs to update the counters if broadcast or
multicast pkts are received in exception path.
Change-Id: I450bf809fab559be8f2fbd172c49fd7e8858ee5c
CRs-Fixed: 2875804
Currently the preferred channel list is not updated to have indoor only
channels removed. Add functionality to remove the indoor channels from
the PCL.
Change-Id: I31df737a3688f6c64c2eb5fa5ab0cea1d36869e5
CRs-fixed: 2874092
Currently, TWT setup is allowed after roaming even if
TWT notify from firmware is not received.
Block the TWT setup till notify event is received
from firmware.
Change-Id: Ia6ff8fe9e05f32ddf6dbdd608d9090b612237f26
CRs-Fixed: 2870610
Fill extra params such as join timeout etc. in LIM
for connection manager path.
Change-Id: I3c12e49023ce04c6b8d2f6c41d128ed9fc93a441
CRs-Fixed: 2879094
FTIE buffer carries multiple FT subelements (like R1KH-ID,
R0KH-ID, GTK, IGTK, etc).
Total FTIE buffer len = Number of FT subelements * (Subelement
ID (1 bytes) + lenght (1 bytes) + data length).
Currently, Host checks only the minimum length for FTIE buffer
while filling each FT subelements. This leads to OOB if the
remaining length of FTIE length buffer less than the length of
an FT subelement.
Before filling each subelement into FTIE buffer, add a check
to validate subelement length against remaining FTIE length
Change-Id: I5d6f4a59eef591d3a2da9f2403738d1fdd1a88b2
CRs-Fixed: 2857084
Call TPC calculation API from lim_handle_add_bss_rsp i.e.
after receiving vdev start response from FW.
TPC calculation API was called from lim_mlm_add_bss for SAP
and since this was happening before host received vdev start
response, HW limit for power from FW was zero and it
affected TPC calculation.
Also, API to check psd power flag for 6ghz returns true for
5ghz channels, so modify it to call under 6ghz channel check.
In TPE IE, max_tx_power_count values is one less than
num_pwr_levels so add 1 to count before assigning it to
num_pwr_levels for 5GHz TPE, non-PSD case.
Change-Id: I7e2ca0b6cf6c54528ade6263a87459e2c21098b2
CRs-Fixed: 2877654