Currently HDD defines function hdd_wlan_get_freq() which uses
it own static table to perform channel to frequency mapping. This
duplicates functionality provided by the converged regulatory
function wlan_reg_chan_to_freq(), so remove hdd_wlan_get_freq()
and update its only client to use wlan_reg_chan_to_freq().
Change-Id: I6fcb11b9b967ab77dcd7c8d0c1bc185ee3c18913
CRs-Fixed: 2215576
Currently, number of bytes being copied into keyname_nai buffer is
key_nai_length, which can be greater than FILS_MAX_KEYNAME_NAI_LENGTH.
But the size of keyname_nai is limited to FILS_MAX_KEYNAME_NAI_LENGTH,
which may cause buffer overflow.
To address this issue, add check for key_nai_length against
FILS_MAX_KEYNAME_NAI_LENGTH to ensure buffer overflow does not happen.
Change-Id: I88c89b1fef6fdb1c4bd93e0fb8f3e54634b4940f
CRs-Fixed: 2208881
On receiving del station command, SAP is not updating the del
station reason code properly in station info.
Update the correct reason code in station info whenever a
del station or deauth station event comes.
Change-Id: I2004dc21f18682dbc7dee488e7b55bfccd0d242a
CRs-Fixed: 2178538
Currently sap netdev interface stats are updated even for the
IPA uc HW offload packets. This is not correct as the stats need
to be updated only for the exception packets which comes to the
host and forwarded to netdev kernel. In this change update the
soft ap interface stats only for the exception packets which
comes to host.
Change-Id: I0b017cf1d5ff74234bfee540ef37ee03c5131c48
CRs-Fixed: 2164582
Call cdp_set_pn_check to set PN check & security type in data path.
Required for RX defragmentation on Napier.
Change-Id: Ie00613be2e2713c58b4d83aa1c31eb4451442477
CRs-Fixed: 2213691
Deprecate enum wmi_dwelltime_adaptive_mode and use enum
scan_dwelltime_adaptive_mode defined in scan component.
Change-Id: I9c33b852172d9208fb8440c6dc71a12aefd717da
CRs-Fixed: 2213150
In function wma_unified_radio_tx_power_level_stats_event_handler,
radio_id is checked if it is greater than num_radio. However, radio_id
is an array index and its range is 0 to (num_radio-1). So if radio_id
is equal to num_radio, a buffer overflow would occur while accessing
the array link_stats_results->results.
Fix sanity check to return error if radio_id is greater than or equal
to num_radio in wma_unified_radio_tx_power_level_stats_event_handler.
Change-Id: Ib48e8388206f28e7b2cb80177363655008a109e6
CRs-Fixed: 2209106
Add changes to trigger SAE using cfg80211 API's. Also, add
changes to handle SAE status that comes via cfg80211 ops
Change-Id: Ie113f84d4fdc927fff26b13b0e0551b92b22fd5d
CRs-Fixed: 2211041
wmi_handle is needed while registering for wmi event handler. But it is
not set for pdev before registering for EGAP event handler. With this,
EGAP support remains disabled which may end up in increased power
consumption.
Move setting of wmi_handle in pdev before registering for EGAP event.
Change-Id: Icb8accc738a3aaad7fbc1201c7c0d0b77945e8f2
CRs-Fixed: 2203380
The Data Path in the WLAN host driver needs to be sending DHCP START/
STOP indications to FW during DHCP based IP address acquisition phase
in the SAP mode.
Inspect the Tx/Rx frame, and send the notification to the FW through
WMI message.
Change-Id: Iad6308980a7158516f341b97f3baffab1e4c4bc3
CRs-Fixed: 2114816
Enable auto PS timer in hdd config such that adrastea
is never stuck in full power mode.
Change-Id: I2668b7c1ba64b67bf524e449e96ec6d79a2c1676
CRs-Fixed: 2214124
wlan_hdd_disconnect wait time is 5 second.
WMA_VDEV_STOP_REQUEST_TIMEOUT is 6 second.There have 1 sec gap.
Which means if timeout happend, wlan_hdd_disconnect will exit before
wma_vdev_resp_timer is invoked. wma_vdev_resp_timer will trigger SME
to invoke callback hdd_dis_connect_handler to release vdev obj ref
count.
If unload driver during the time gap, vdev cannot destory
successfully because hdd_dis_connect_handler haven't be called.
rmmod will wait for wlan_hdd_disconnect exiting then unload driver.
So increase hdd disconnect wait time. Make sure wlan_hdd_disconnect
exit after lower layer timeout and hdd disconnect handler be called.
Change-Id: I8fddae200ed675b93c0f300a9e28dbbfd3a976a6
CRs-Fixed: 2201448
If user configures the phymode to 11ac then band is configured
with only 5G that disables the 2.4G channels.
Instead of setting the band to 5G, enable the 5G band during
11ac phymode update if the 5G band is not enabled.
Change-Id: I4a4fa3a0bddb345e7ea73b7b36f0581644029316
CRs-Fixed: 2210359
Connected AP scan entry is aged out if beacon
is not recieved within scan age out time.
Update mlme information of the connected AP/BSSID
scan entry so that scan age out hanlder will not
age it out even though the last beacon recieved
time is greater than the configured scan age out value.
Change-Id: I14c68c28459080623ca62c0bad9052e38d7fb348
CRs-Fixed: 2202010
When hw_mode=any (both 2.4Ghz nad 5Ghz bands included),
RSSI and BSS adjustment for 2.4Ghz channels happens 2
times, once in sap_interference_rssi_count() and once
in sap_interference_rssi_count_5G() which leads to wrong
computation of weight.
Check whether a channel is 2.4Ghz or 5Ghz channel before
calling the corresponding RSSI, BSS adjustment function.
Change-Id: I6c318e489cfa177c6de088e7cdfb4779ceb99b2f
CRs-Fixed: 2208069
Set AMSDU in AMPDU support in addba response frames only
if supports the feature.
Change-Id: Ibdb51e9055199b688f494f31fd484b246ec11163
CRs-Fixed: 2211374
lim_send_sme_neighbor_bss_ind() is unused so remove it and all related
data structures.
Change-Id: I373fb570f3b368dc79ce08b7acbc1026a7e19758
CRs-Fixed: 2213056
struct csr_scanstruct contains fields currentCountryBssid and
currentCountryRSSI which are obsolete, so remove them.
Change-Id: I47f40cc687b0e905d3c2db4ad67fa32f70d5181e
CRs-Fixed: 2212972
Message eWNI_SME_CHANGE_COUNTRY_CODE is no longer being sent, so
remove it along with the handler for it.
Change-Id: I8fe5e1e8c0c18ab51d496dddd9604c3a4cb2b236
CRs-Fixed: 2212920
In HDD there are currenty two different callback functions which were
formerly used to synchronize country code changes with SME:
- wlan_hdd_change_country_code_callback()
- wlan_hdd_change_country_code_cb()
With the "converged regulatory" implementation these are no longer
used, so remove them.
Change-Id: I65da8160c9057383ad3ccf3b2094b4c52fcf5a47
CRs-Fixed: 2212959
Currently quite a few stats-related APIs which have no dependency upon
wireless extensions (wext) are located in wlan_hdd_wext.c. Relocate
the following functions to wlan_hdd_stats.c:
wlan_hdd_get_rssi()
wlan_hdd_get_snr()
wlan_hdd_get_linkspeed_for_peermac()
wlan_hdd_get_link_speed()
wlan_hdd_get_peer_rssi()
wlan_hdd_get_peer_info()
wlan_hdd_get_class_astats()
wlan_hdd_get_station_stats()
wlan_hdd_get_temperature()
Change-Id: I72a35f33648f20bbb2c01bb81cea409f6e80ee00
CRs-Fixed: 2212113
We need to set chainmask for BT /wlan share antenna
case, e.g:
2.4g:wlan 1x1 on chain 1, BT chain 0
5G: wlan 2x2 chain 1&0.
Add ini enableBTChainSeparation, default 0.
If enableBTChainSeparation set 1, chainmask will
be set to FW event though 2x2 case.
Change-Id: Ifc8c2c64824c793b72a7caa878f500c71f722e17
CRs-Fixed: 2206935
Currently 11k offload command is sent to FW as part of RSO Start and
not explicit 11k offload disable command is sent to the FW. In case of
STA+STA concurrency cases, while 11k offload is enabled for the 2nd
STA after STA 1 is disconnected, the FW asserts because it has 11k
offload enabled for STA 1 and has not deconfigured it yet.
Send 11k offload disable command as part of RSO Stop during disconnect
to the FW so that it deconfigures 11k for the currently enabled STA
and re-configures for the second STA without assertion.
Change-Id: I8a1bcb8906c809f451f7ab3df3e4c671cef062fd
CRs-Fixed: 2208649