Commit Graph

14126 Commits

Author SHA1 Message Date
nshrivas
bda12ce5c6 Release 5.2.0.131B
Release 5.2.0.131B

Change-Id: I26447713b3c7f6663e2222be2374792f9096bb9d
CRs-Fixed: 774533
2019-04-22 14:58:30 -07:00
Mohit Khanna
e1b8602571 qcacld-3.0: Check vdev from CDP vdev_id API
Check for validity of vdev obtained from the CDP
cdp_get_vdev_from_vdev_id API.

Change-Id: Ie7fb99a0e08135bd3f2cc6b63070a4bd72df943a
CRs-Fixed: 2434583
2019-04-22 00:30:32 -07:00
nshrivas
9bfde90005 Release 5.2.0.131A
Release 5.2.0.131A

Change-Id: Iabb6136f6d67387b45097195bbe35f89c49fb570
CRs-Fixed: 774533
2019-04-21 18:11:07 -07:00
nshrivas
5316677e1e Release 5.2.0.131
Release 5.2.0.131

Change-Id: I5e2ce51428ade4268ed92f225192764649f6b4b7
CRs-Fixed: 774533
2019-04-21 06:17:30 -07:00
nshrivas
a994c9aadb Release 5.2.0.130Z
Release 5.2.0.130Z

Change-Id: I9d532259d57fbda056074f0ae0ab80c992fde44c
CRs-Fixed: 774533
2019-04-21 00:19:50 -07:00
Vignesh Viswanathan
687af4646e qcacld-3.0: Use the operating class table no for AP's country IE for RRM
Currently when an RRM scan is issued for beacon report request from the
connected AP, we use the current scan country code to get the op class
table for the country.

However, the AP can specify which table to use in the country IE's 3rd
byte of the country field which is not parsed and stored in the scan
country code.

For RRM Scan for beacon report request, use the 3rd byte to get the table
number from the connected AP's beacon and if no table number is present,
then use the op class table based on the country code.

Change-Id: I0911ac908d1c71676f7c1450ab260eaa732ddcb9
CRs-Fixed: 2435942
2019-04-21 00:19:49 -07:00
nshrivas
d3d7ec4486 Release 5.2.0.130Y
Release 5.2.0.130Y

Change-Id: If5aa840ec1e1ee898f89b2ccc6c8d5766257635a
CRs-Fixed: 774533
2019-04-20 21:40:25 -07:00
Jianmin Zhu
8d7afc2b01 qcacld-3.0: Add home channel into roam scan channel map directly
After DUT STA connected, search connected ssid from scan cache,
get each channel and put into roam scan channel map. To make sure
current home channel is always included and don't set full
channel as channel map, add home channel into roam scan channel
map directly.

Change-Id: Ifb25562259a9b7f35849b39d8e0d238e754d4f96
CRs-Fixed: 2436200
2019-04-20 21:40:24 -07:00
nshrivas
0732d124ea Release 5.2.0.130X
Release 5.2.0.130X

Change-Id: Id6318f223533a479b19c6f438c3eeb1ed77821fe
CRs-Fixed: 774533
2019-04-19 09:25:46 -07:00
nshrivas
c06f367c74 Release 5.2.0.130W
Release 5.2.0.130W

Change-Id: I9b3efd465f28cb8d4d505ab0b0a3f1c02e14eca8
CRs-Fixed: 774533
2019-04-19 06:12:48 -07:00
bings
6c4672b657 qcacld-3.0: Select valid channel after pcl selection fails
When SAP works in ACS mode, it needs to restart with a safe channel
if current channel is unsafe. Sometimes no channel is selected from
pcl channels. SAP can't just pick up one safe channel because the
channel may be DFS channel while SAP may disable DFS master capability.
SAP should select one valid channel for LTE COEX.

Change-Id: I303165f82b5c2a8d06447df4ba23fdcba5b1083c
CRs-Fixed: 2415007
2019-04-19 06:12:48 -07:00
Pragaspathi Thilagaraj
03839b9e2f qcacld-3.0: Pack FT-IE into association request for FT-FILS connection
With FT-FILS akm, initial mobility domain fils connection
requires FTIE in the assoc request frame. FTIE is copied from
auth response frame received from the AP and stored in fils_info.
Add frame parser changes to populate the FT-IE into the
association request frame.

Send this FTIE in the association request appended after MDIE.

Change-Id: I9087ff9f36b52f3ef08b03cba826bdc42834a9f8
CRs-Fixed: 2414678
2019-04-19 06:12:43 -07:00
Pragaspathi Thilagaraj
0bd15747c0 qcacld-3.0: Save FTIE from auth response in FT-FILS IM connection
FT-FILS initial mobility domain association requires FTIE in the
association request frame sent to the AP. FTIE has the R0-KH and
R1-KH ID that is needed to derive the FILS-FT key.

Host driver should save the FTIE received from the AP in the
authentication response frame and send it without any
modification to the AP in association request frame.

Change-ID: I047538e13b37e10c2cebad4959fc796af5d16df6
CRs-Fixed: 2414662
2019-04-19 06:12:38 -07:00
nshrivas
c16f627c56 Release 5.2.0.130V
Release 5.2.0.130V

Change-Id: I409ca3bd43adccb2d36e59ae3b3fcfc863db5675
CRs-Fixed: 774533
2019-04-19 04:08:38 -07:00
Rajeev Kumar Sirasanagandla
1a21bf6b53 qcacld-3.0: Fix behavior of SET_FCC_CHANNEL
Expectation of user is fcc constraint should be applied when user input
is zero and should be cleared when input is negative value. But current
driver behavior is out of sync.

To address this, invert the user-input before invoking regulatory
component api ucfg_reg_set_fcc_constraint(). Also ensure reduced
tx power is effective in calculating maximum tx power while connecting
to access-point.

Change-Id: I73485685b70b805107a52080c64efde30e807dc3
CRs-Fixed: 2429993
2019-04-19 04:08:37 -07:00
Pragaspathi Thilagaraj
2b8ea35e71 qcacld-3.0: Introduce new INI to configure roam trigger parameters
Add new ini to configure various roam trigger parameters:
1. "minimum_btm_candidate_score"
   Consider the AP as roam candidate only if its score is greater
   than minimum_btm_candidate_score. This value will be sent over
   the WMI_BTM_OFFLOAD_CONFIG command.

2. "roam_scan_inactivity_time"
   Device inactivity monitoring time in  milliseconds for which
   the device is considered to be inactive with data packets
   count is less than configured roam_inactive_count.

3. "roam_inactive_data_packet_count"
   Maximum allowed data packets count during
   roam_scan_inactivity_time.

4. "roam_scan_period_after_inactivity"
   Roam scan period in ms after device was in inactive state.

5. "btm_roam_score_delta"
   Roam scan delta value for btm triggered roam scan. This value
   will be sent to firmware over the WMI_ROAM_AP_PROFILE wmi
   command.

6. "idle_roam_score_delta"
   Roam scan delta value for Idle roam scan trigger reason. This
   value will be sent to firmware over the WMI_ROAM_AP_PROFILE
   wmi commnd in the roam_score_delta_param_list tlv.

7. "disconnect_roam_trigger_min_rssi"
   Candidate minimum rssi value for disconnect roam trigger. This
   value will be sent to firmware over the WMI_ROAM_AP_PROFILE
   wmi commnd in the roam_score_min_rssi_param_list tlv.

8. "beacon_miss_roam_min_rssi"
   Candidate minimum rssi value for BTM triggered roam. This
   value will be sent to firmware over the WMI_ROAM_AP_PROFILE
   wmi commnd in the roam_score_min_rssi_param_list tlv.

9. "bss_load_trigger_5g_rssi_threshold"
   If connected AP is in 5GHz band, then consider bss load roam
   triggered only if load % > bss_load_threshold && connected AP
   rssi is worse than bss_load_trigger_5g_rssi_threshold.

10. "bss_load_trigger_2g_rssi_threshold"
   If connected AP is in 2GHz band, then consider bss load roam
   triggered only if load % > bss_load_threshold && connected AP
   rssi is worse than bss_load_trigger_2g_rssi_threshold.

Change-Id: Ib026251a8ec403f4376a16a91ff1b5d969336816
CRs-Fixed: 2434922
2019-04-19 04:08:32 -07:00
nshrivas
ed23c6ff1e Release 5.2.0.130U
Release 5.2.0.130U

Change-Id: Ibbc49ff140d69f6968023f79e6ad7ca23a42d93b
CRs-Fixed: 774533
2019-04-19 01:56:40 -07:00
Sourav Mohapatra
9036f65119 qcacld-3.0: Save and restore SAR config post SSR
After SSR, SAR configuration is lost.
Since, SSR is hidden from userland, VENDOR_SUBCMD_SET_SAR_LIMITS
to configure SAR shall not come again from userspace after SSR.

To restore SAR configuration, save this in hdd context when the vendor
command comes and restore after re-init.

Change-Id: I083fb72a9fad35af1a84bcc9d8d59976485b9fa3
CRs-Fixed: 2427382
2019-04-19 01:56:38 -07:00
Will Huang
79af29fd46 qcacld-3.0: Fix smmu fault when inject deauth frame
1. The original mgmt send path changed by converged p2p component, now
wma_tx_packet() will not invoke when sending station mode action
frames, it invokes p2p_mgmt_tx() instead. But for tx buffers of PMF
frames sending to some target require to do bi-direction dma map to
pass smmu sanity check, which is missed in p2p_mgmt_tx() path.
2. The offchan flag passed to wlan_hdd_mgmt_tx() is not always accurate.
There have been cases where the flag is set even though the operation is
taking place on the home channel, and blindly following the flag leads
to an unnecessary ROC.

Fix it by adding QDF_NBUF_CB_TX_DMA_BI_MAP to new p2p mgmt tx path and
bring back home channel check to override the offchan flag if
necessary.

Change-Id: I9589157e57e95d0c61a432f87a07630c4b77f757
CRs-Fixed: 2423341
2019-04-19 01:56:32 -07:00
Jingxiang Ge
2a67be508a qcacld-3.0: Pass hang reason to qdf_trigger_self_recovery
Pass hang reason to qdf_trigger_self_recovery

Change-Id: I9930731d0a565e021eb472163de7fb5190c39f35
CRs-Fixed: 2432834
2019-04-19 01:56:27 -07:00
nshrivas
d4e3a1bed9 Release 5.2.0.130T
Release 5.2.0.130T

Change-Id: I9e117990120cb3e71bb2ea4f271bec6b45db4c84
CRs-Fixed: 774533
2019-04-18 17:02:15 -07:00
Pragaspathi Thilagaraj
aa8320e1c6 qcacld-3.0: Send idle roam trigger monitor command to firmware
Send idle roam trigger monitor command to firmware based on
the SET SUSPEND mode command received from the user space.
The set suspend mode value sent will be used by firmware as
one of the parameters in determining if the device is in
idle state. When set suspend mode is 1, device is not in
idle state else the device is considered idle if idle state
data packet count, idle rssi, inactivity time criteria are met.

Add changes to send the suspend mode value over the wmi
command WMI_IDLE_TRIGGER_MONITOR_CMDID.

Change-Id: Ia4531fdab140334dbb830e0d7486db07bbdfc7e8
CRs-Fixed: 2436221
2019-04-18 17:02:14 -07:00
Jianmin Zhu
5b8c5ca514 qcacld-3.0: Missed home channel in chmap when roam to hidden AP
Roam channel map is got by searching current ssid in scan db,
if hidden ssid, probe resp has ssid, but beacon usually has
NULL ssid.

Use new scan structure in csr_init_occupied_channels_list

Change-Id: I9758cb30b83a7c0c3d221b7178ffb607f0911593
CRs-Fixed: 2432223
2019-04-18 17:02:05 -07:00
Will Huang
5a7391c0c1 qcacld-3.0: Add NULL pointer check before de-reference
If csr_is_security_match() call csr_validate_any_default(), it passed
NULL pointers of some input parameters, check these pointers before
de-reference it.

Change-Id: I2cbd9f680c8a90919599db3af5b522ccb760892d
CRs-Fixed: 2423713
2019-04-18 17:01:57 -07:00
nshrivas
5ac8919cb3 Release 5.2.0.130S
Release 5.2.0.130S

Change-Id: Ia6c3a5210a2ebb531a64ebbc9a14d6e555608244
CRs-Fixed: 774533
2019-04-18 13:26:09 -07:00
Srinivas Girigowda
cb7b8b8065 qcacld-3.0: Replace MAC_ADDRESS_STR with QDF_MAC_ADDR_STR
Replace MAC_ADDRESS_STR with converged macro QDF_MAC_ADDR_STR.

Change-Id: Ib9bd0a93a3ffdb89a42e11200d8b68ce1af86681
CRs-Fixed: 2433317
2019-04-18 13:26:09 -07:00
Arun Kumar Khandavalli
f573e06d0e qcacld-3.0: Register the wext handlers for ftm mode
Presently the wext handlers are not getting registered for the
ftm mode resulting in the error when the ftm specific commands
are issued.

Register the wext ioctls when the interface up is received on the
ftm mode.

Change-Id: I50ae011012cd1d667e69d1d84f62c14fa253111a
CRs-Fixed: 2436937
2019-04-18 13:26:03 -07:00
nshrivas
f62792457e Release 5.2.0.130R
Release 5.2.0.130R

Change-Id: Ife24a77a26b24a2289673345084baa5ed790dc29
CRs-Fixed: 774533
2019-04-18 02:33:21 -07:00
Baowei Liu
e96d1033b4 qcacld-3.0: fix memory overwritten in csr_roam_chk_lnk_swt_ch_ind
memory of sizeof(!roam_info) is not correct

Change-Id: Ida0c617815439de33b767b9eb8ed16869264854b
2019-04-18 02:33:20 -07:00
Tiger Yu
8b119e9b61 qcacld-3.0: Use WLAN_FEATURE_DP_BUS_BANDWIDTH instead of MSM_PLATFORM
Use WLAN_FEATURE_DP_BUS_BANDWIDTH to instead of MSM_PLATFORM for better
reading.

Change-Id: Iaed4f77b09b80ca8872a69c832491598db021232
CRs-Fixed: 2423299
2019-04-18 02:33:09 -07:00
nshrivas
53179133bc Release 5.2.0.130Q
Release 5.2.0.130Q

Change-Id: Ieddce19ac0284ce16e60c2d3fa4ca813663790dd
CRs-Fixed: 774533
2019-04-18 00:28:22 -07:00
Rachit Kankane
228370de3f qcacld-3.0: Don't force SCC in AP+AP DFS scenario
Overwrite 2nd AP's channel with 1st AP only when:
1. Current operating mode is single mac
2. or 2nd AP is coming up on 5G band channel

Change-Id: I8260721a5f9b8547d93ed7c6775741e6a8cc2a44
CRs-Fixed: 2427083
2019-04-18 00:28:21 -07:00
Rajeev Kumar Sirasanagandla
02cf4c9c2f qcacld-3.0: Avoid STA plus STA concurrent connections
Add policy manager support to avoid simultaneous connections on
STA plus STA concurrent interfaces when
WMI_SERVICE_STA_PLUS_STA_SUPPORT is not set.

Change-Id: I73e65c56a98908128d56af2f4fba8ced5210fff1
CRs-Fixed: 2427828
2019-04-18 00:28:17 -07:00
Ajit Pal Singh
17634e1e48 qcacld-3.0: Add config to enable/disable RX PN_check offload
Add config to enable/disable RX PN_check offload.
Offload PN check to FW for QCN7605 HL data path.

Change-Id: Ieab4442d73957a9e0314d637a513452616f7a48c
CRs-Fixed: 2433079
2019-04-18 00:28:12 -07:00
Yeshwanth Sriram Guntuka
a6c3d27152 qcacld-3.0: Do not send unicast probe req on assoc disallowed
Unicast probe requests are sent to AP even though
beacons or probe responses from AP contain MBO IE
with assoc disallowed bit set. In another scenario
where AP rejects association with retry delay of 60
secs, unicast probe requests are being sent to AP
as part of scan for ssid during connection within
the retry delay.

Fix is to reject connection when assoc disallowed
bit is set in MBO IE and also not trigger scan for
ssid when get_scan_results fails due to rssi reject.

Change-Id: I855cf397ff7e3869fb1eceeddc1db5d109790465
CRs-Fixed: 2433740
2019-04-17 15:45:41 +05:30
nshrivas
ee0ff2cea0 Release 5.2.0.130P
Release 5.2.0.130P

Change-Id: Ie3b399b499bb1083ce439a3e4167bd1e6c454f24
CRs-Fixed: 774533
2019-04-16 19:57:48 -07:00
Srinivas Girigowda
d1e45b8dc7 qcacld-3.0: Replace multiple IPv4/v6 address len macros with QDF macro
Replace multiple IPv4/v6 address len macros with QDF macro.

Change-Id: Id8ee0e1a4d6057f74ea5b7122a33f5137ea533e4
CRs-Fixed: 2435753
2019-04-16 19:57:47 -07:00
Wu Gao
fd60f3a207 qcacld-3.0: Update tdls peer state
TDLS peer state is reset to OL_TXRX_PEER_STATE_CONN when enable tdls
link and register tdls peer, then it will drop data packets to the
peer on high latency platform. So, set peer state to
OL_TXRX_PEER_STATE_AUTH once connected to tdls peer.

Change-Id: I0d02f1efa3c79c0bf41649d98a13ce8b0bf7378d
CRs-Fixed: 2423394
2019-04-16 19:57:39 -07:00
sheenam monga
d756ff1530 qcacld-3.0: Fix null ptr dereference in lim_process_assoc_cleanup
Currently, lim_process_assoc_cleanup does not do null validation
for sta_ds which can lead to null pointer derefrence.

Add null pointer check for sta_ds in lim_process_assoc_cleanup

Change-Id: I74ad0e11213c0bec1473984f312f18b5f1082082
CRs-Fixed: 2423883
2019-04-16 19:57:34 -07:00
Pragaspathi Thilagaraj
4f529f269b qcacld-3.0: Send idle and disconnect roam parameters to firmware
Add support for new wmi command WMI_ROAM_DEAUTH_CONFIG_CMDID
to send disconnect roam trigger parameters and the
new wmi command WMI_ROAM_IDLE_CONFIG_CMDID is used to send the
idle roam trigger parameters. Fill the parameters from csr to
roam request and send it as part of RSO start command to
firmware.

Fill the corresponding parameters in
csr_update_roam_scan_offload_request(). This will be sent to wmi
and the params will be copied to the wmi command buffer.

Change-Id: I3d863a3ec8c5608d47e600c760d7b3406703a953
CRs-Fixed: 2431490
2019-04-16 19:57:30 -07:00
nshrivas
2cfe64c8ba Release 5.2.0.130O
Release 5.2.0.130O

Change-Id: I7e5f2c57a9db62e758c8033595cf4ca15acc3ed3
CRs-Fixed: 774533
2019-04-16 09:09:27 -07:00
sheenam monga
449a472838 qcacld-3.0: Fix null ptr dereference of session
Currently, lim_process_sme_disassoc_cnf,
lim_process_sme_disassoc_req, lim_process_sme_deauth_req and
sme_qos_request_reassoc does not do null validation for session
which can lead to null pointer derefrence.

Add null pointer check for session in lim_process_sme_disassoc_req,
lim_process_sme_deauth_req,lim_process_sme_disassoc_cnf and
sme_qos_request_reassoc before usage and send failure to sme.

Change-Id: I0efe4e98a8dd26767309ed1e6b668a6267a4b770
CRs-Fixed: 2423887
2019-04-16 09:09:27 -07:00
nshrivas
3c9024173a Release 5.2.0.130N
Release 5.2.0.130N

Change-Id: I5297b0388703544cdb568834052f98e2f7f4550f
CRs-Fixed: 774533
2019-04-16 02:50:12 -07:00
Sachin Ahuja
6edf8d9cf2 qcacld-3.0: Correct the debugfs print for coex idrx read
The debugfs read operation for mws idrx is not printing the
correct subids.

Change the debugfs print to reflect the correct subids during
the coex idrx debugfs read operation.

CRs-Fixed: 2431347
Change-Id: I1a4bd623c17e41a69428c4611818f2b55153d505
2019-04-16 02:50:06 -07:00
Jeff Johnson
e2da578fb7 qcacld-3.0: Align with the refined struct add_ts_param
Change I421b670b86a7e1cecbe5a2686efefbbb6c455267 ("qcacmn: Refine
struct add_ts_param") is updating struct add_ts_param, so update the
legacy project to align with those changes. Note that these are
interdependent changes.

Change-Id: I829ad0abb864f0a05047894bab9977d8529074dc
CRs-Fixed: 2433928
2019-04-16 02:50:01 -07:00
nshrivas
00e0f5e4e6 Release 5.2.0.130M
Release 5.2.0.130M

Change-Id: Iafae36232b58690f86ffbe32f2fe395774b59efe
CRs-Fixed: 774533
2019-04-15 22:26:31 -07:00
Mohit Khanna
f7e7b340b6 qcacld-3.0: Save netdev TX queue state in flow control cb
Currently we are using NUM_TX_QUEUES=5. These queues correspond to
different access categories. For flow control, we end up
pausing/unpausing some of the pausing depending up the thresholds.

Save netdev TX queue states during flow control callback so that the
same information can be retrieved when the flow control stats are
dumped.

CRs-Fixed: 2431624
Change-Id: Icad3ff7a60e6e367cf650a2f249de3c2b70aded8
2019-04-15 22:26:30 -07:00
bings
d7357e8853 qcacld-3.0: Get SAP's wep key for shared wep from where it is saved
SAP needs correct key to decrypt the third authentication frame which
is encrypted by station, otherwise wep shared connection fails.

Need get correct wep key from where it is saved.

Change-Id: I3b5152a7374f8e1604ffe2b3900811f808d0126c
CRs-Fixed: 2425738
2019-04-15 22:26:25 -07:00
Sandeep Puligilla
c94d6c323a qcacld-3.0: Handle LFR3 roam failure
Handle LFR3 HO failure with vdev manager.

Change-Id: Ifeb3711957a95ba2a0ee9c6a62e1e65510f148d7
CRs-Fixed: 2430553
2019-04-15 22:26:20 -07:00
Harprit Chhabada
468a4ade93 qcacld-3.0: Enable CFG INI/NON INI logging
Enable logging of cfg ini/non ini items.
Also, enable support for iwpriv wlan0 getConfig.

Change-Id: I938588bda4c1074a0531626d73e10e74afb4f9a6
CRs-Fixed: 2432426
2019-04-15 22:26:15 -07:00
sheenam monga
70a83dacbf qcacld-3.0: Fix null ptr dereference in hdd_set_power_save_offload_config
Currently, hdd_set_power_save_offload_config does not do null validation
for power usage before string comparison which can lead to null pointer
derefrence.

Add null pointer check for power usage in
hdd_set_power_save_offload_config.

Change-Id: I91eba2f5eb27aebf7451be58a6744634aaebd184
CRs-Fixed: 2423777
2019-04-15 22:26:10 -07:00
nshrivas
3b59080d82 Release 5.2.0.130L
Release 5.2.0.130L

Change-Id: I74bf8d62db3e7ba9ac4914dd7d9f87c46e2a423b
CRs-Fixed: 774533
2019-04-15 17:44:06 -07:00
nshrivas
19226005ad Release 5.2.0.130K
Release 5.2.0.130K

Change-Id: I49184639644b83450ad37864375623cf2ef8261c
CRs-Fixed: 774533
2019-04-15 15:21:06 -07:00
Pragaspathi Thilagaraj
42dc8c9360 qcacld-3.0: Update HLP data from FILS assoc rsp frame to PE session
HLP data extracted from FILS association response frame needs to
be sent to upper layer. When association success is posted to
sme, HLP data is copied from lim pe_fils_info structure to
sme_join_rsp->roam_fils_info. But the hlp data is parsed from
association response frame but its not copied to pe_fils_session
This resuts in hlp data not sent to hdd and upper layers.
Copy fils data from parsed association response frame into the
pe_fils_info for FILS connection.

Currently there is pointer to hlp_data in pe_session also. But
it is not used and memory allocation is also not done for this
hlp_data. Cleanup this unused hlp data in pe_session and only
use the hlp data from pe_fils_session structure.

Change-Id: I0ef6df6e55130e18a85e2ddf49f8293d8672ac0b
CRs-Fixed: 2424493
2019-04-15 15:21:05 -07:00
Abhishek Singh
cd131ae9dc qcacld-3.0: Add new roamed BSS to scan cache directly
During LFR3 driver post the message to add the scan entry in
scheduler to scan module and continue with roaming and send roam
event to CFG layer. Also it set the new AP' scan entry in scan
module as associated, to avoid age out of the entry.

Now as the message posted to scan module will get schedule after
roaming is complete, if new AP's entry is not present in CFG scan
cache the roam indication to CFG may fail. Also if it's not present
in the driver cache the new AP's entry may AGE out and channel will
not be added in occupied list, used for roaming.

Thus update the scan entry in scan module and CFG in same context.

Change-Id: I2c5f165b43d48a0b0b54fdf08a0e53b31fac07aa
CRs-Fixed: 2435410
2019-04-15 16:16:20 +05:30
nshrivas
c0b6754608 Release 5.2.0.130J
Release 5.2.0.130J

Change-Id: I7ef05fbd6e0ee233e801953d7702e9778bd5a3be
CRs-Fixed: 774533
2019-04-13 15:31:17 -07:00
Bala Venkatesh
40f20fd88e qcacld-3.0: Avoid changing measurement duration units in beacon report
Currently, while processing the beacon report req and response the
measurement duration units changed from MS to TU and TU to MS
respectively.
Avoid this conversion as both are close units.

Change-Id: I663b7c8969904a373461fb80c7d505c96e74b48f
CRs-Fixed: 2431912
2019-04-13 15:31:17 -07:00
nshrivas
32056bafe8 Release 5.2.0.130I
Release 5.2.0.130I

Change-Id: I1f6b66d6d3f6c35bd07f4765ebf76e31b088752f
CRs-Fixed: 774533
2019-04-12 10:12:55 -07:00
Jayachandran Sreekumaran
df553017a5 qcacld-3.0: Correct the dev pointer provided in pld_usb
Correct the dev pointer provided in pld_usb_is_fw_down.

Change-Id: Ibc5569c2ae1645813ef2e197c7ad525320312113
CRs-fixed: 2433662
2019-04-12 10:12:55 -07:00
nshrivas
1964b5bf3d Release 5.2.0.130H
Release 5.2.0.130H

Change-Id: I584aa7fee256552fa7073110d4f695911a5efcf5
CRs-Fixed: 774533
2019-04-12 05:20:16 -07:00
Jingxiang Ge
b6e0236a61 qcacld-3.0: Fix race between client connect/disconnect
In SAP if a peer is disconnecting, so CSR roamstate is set to
eCSR_ROAMING_STATE_JOINING. Now if at the same time another peer
is trying to connect, eWNI_SME_UPPER_LAYER_ASSOC_CNF will be dropped
in eCSR_ROAMING_STATE_JOINING state.

Fix this by processing eWNI_SME_UPPER_LAYER_ASSOC_CNF in
eCSR_ROAMING_STATE_JOINING state.

Change-Id: I7d4347013eca494e537aaeb4468814238cb3fca6
CRs-Fixed: 2430840
2019-04-12 05:20:15 -07:00
hangtian
1c37fb9ccc qcacld-3.0: Memory optimize for QCS403 platform
Memory optimize for QCS403 platform, 1x1 chip. Reduce CE1 htt data
dest ring buffer from 512 to 256, reduce CE2 wmi dest ring buffer from
128 to 64, reduce CE9 & CE10 desg ring buffer from 512 to 64, disable
CE11 pktlog. Note: this change only affect specific WLAN build config for
extremely saving memory, for debug purose, there is another build
selecting default WLAN config for reference HW.

Change-Id: I868e74b09cdb11df3dccaa3f9e051da55724983d
CRs-Fixed: 2432631
2019-04-12 05:20:10 -07:00
Ajit Pal Singh
8cf6754eca qcacld-3.0: usb: Add CNSS update_status callback
Add update_status callback to pld usb which will be called by
CNSS to update WLAN FW status(FW-DOWN, RECOVERY)

Change-Id: I159e09eac8bdb75525c64e7b42c3315141ec1f8d
CRs-Fixed: 2430265
2019-04-12 05:20:05 -07:00
Jayachandran Sreekumaran
1438216e41 qcacld-3.0: Add support for pld_is_fw_down in usb
Add support for pld_is_fw_down in usb case.

Change-Id: I2103964c6413734ec4f156fe3058e67984b8e09b
CRs-fixed: 2432112
2019-04-12 05:19:59 -07:00
nshrivas
b636b36c4d Release 5.2.0.130G
Release 5.2.0.130G

Change-Id: I2591b9ecb06f83d5195f492af35db30e0b20b077
CRs-Fixed: 774533
2019-04-12 02:56:23 -07:00
nshrivas
1e2eda4e18 Release 5.2.0.130F
Release 5.2.0.130F

Change-Id: Ibeb585f50603261fba7fb43fd813743e6deca1e4
CRs-Fixed: 774533
2019-04-12 00:36:31 -07:00
Rajeev Kumar
e01118e85f qcacld-3.0: Define PLD APIs for idle shutdown and restart
Define PLD APIs for idle shutdown and restart such that platform
driver can serialize PSOC idle shutdown and restart with driver
load/unload and SSR shutdown/reinit.

Change-Id: I4e772343fbccb099b9af104ac978dcdb650a567a
CRs-Fixed: 2431405
2019-04-12 00:36:30 -07:00
lifeng
88e5800271 qcacld-3.0: Validate cfgLength to the upper bound
Validate cfgLength to the upper bound before using it in copy
inside csr_get_cfg_max_tx_power()/lim_get_dot11d_transmit_power.

Change-Id: Ibcc1f145db9b902a29a0332553323d0a3ac6b2ff
CRs-Fixed: 2423707
2019-04-12 00:36:25 -07:00
nshrivas
ad0e83df29 Release 5.2.0.130E
Release 5.2.0.130E

Change-Id: I20a8eb74065e509c88d25df9f20f64ba41bfe39e
CRs-Fixed: 774533
2019-04-11 22:09:33 -07:00
nshrivas
291807f0a0 Release 5.2.0.130D
Release 5.2.0.130D

Change-Id: I7672e9dac18e3c0bd6728d7efb270b6c91eb54e6
CRs-Fixed: 774533
2019-04-11 12:38:34 -07:00
Harprit Chhabada
c67478f0d7 qcacld-3.0: Null check while calling md_host_evt_cb
wma_motion_det_host_event_handler() get called when FW sent
WMI_MOTION_DET_HOST_EVENTID message.
After the initial processing, pmac->sme.md_host_evt_cb() is
called to send the relevant data back up to the upper layers
of WLAN.
Since this callback function is dynamically registered there
are cases where it might not be registered before this FW event
is received, resulting in a NULL pointer dereference.

Change-Id: I06b7907b39f4da0837196ccf377ecc2da325be8c
CRs-Fixed: 2428803
2019-04-11 12:38:34 -07:00
Min Liu
e2b469f61f qcacld-3.0: Rename bssid in cfg80211_update_owe_info to peer
The field bssid in cfg80211_update_owe_info is renamed to peer
in kernel. Change it accordingly in WLAN driver.

Change-Id: Idf6e051d875c2a9dbe10c49eab7aa02536e5bdc4
CRs-Fixed: 2433437
2019-04-11 12:38:30 -07:00
nshrivas
a4d66f4736 Release 5.2.0.130C
Release 5.2.0.130C

Change-Id: Ia03521db0f77416a9f47c1bcf6914fc2aad0a362
CRs-Fixed: 774533
2019-04-11 01:13:25 -07:00
Liangwei Dong
bf6e36876e qcacld-3.0: Move second DFS AP to CAC wait
If the first DFS AP is in CAC progress and second
AP starts on DFS chan, move the second AP to CAC
wait state as well.
Otherwise, when CAC end, the second AP will always
stay in "WLAN_VDEV_S_START" state and can not
handle CAC end event.

Change-Id: I440ce3339dd2afb62bdb574f2f785d733a980933
CRs-Fixed: 2426714
2019-04-11 01:13:24 -07:00
Min Liu
4710404f78 qcacld-3.0: Fix delayed work leak in hdd_context_create
Delayed work leak is observed when hdd_wlan_startup failed in
__hdd_soc_probe. It will call hdd_context_destroy for cleanup, but
the delayed work created in hdd_context_create is destroyed in
hdd_wlan_exit.

To fix this leak, move this from hdd_wlan_exit to hdd_context_destroy

Change-Id: I237de3695e8915dee9ba085c5d3679a3b438d323
CRs-Fixed: 2432748
2019-04-11 01:13:18 -07:00
Manikandan Mohan
956b69e3e0 qcacld-3.0: Add NAN+SAP concurrency related checks
Add NAN+SAP concurrency setup constraints in HDD.

Change-Id: Ie7f2fa5694fc1b8af5931e9216164acbfcf3eafd
CRs-fixed: 2431539
2019-04-11 01:12:51 -07:00
nshrivas
8574b81522 Release 5.2.0.130B
Release 5.2.0.130B

Change-Id: I788405b6d9dc20ee48b1315dabbb8cc66bc753a6
CRs-Fixed: 774533
2019-04-10 05:26:49 -07:00
Lin Bai
9dc616c9cb qcacld-3.0: Fix compilation failure of FILS
With kernel version before 4.10, and no CFG8011_UPDATE_CONNECT_PARAM
defined, compiler throw failure -
wlan_hdd_cfg80211.c:21402:1:
error: ‘hdd_update_connect_params_fils_info’
defined but not used [-Werror=unused-function]

Change-Id: I0b15e5822b36d881d484c241064f533f26f77b6d
CRs-Fixed: 2429665
2019-04-10 05:26:48 -07:00
Ashish Kumar Dhanotiya
d63d686510 qcacld-3.0: Disconnect STA/SAP if disable channel list is provided
Disconnect STA/SAP when disable channel list is provided by user
which contains the current STA/SAP operating channel.
Also add an ini parameter to use as featurization flag for this feature.

Change-Id: Ibe6c18ee7f6ed007794853293a0bde4999611167
CRs-Fixed: 2280989
2019-04-10 05:26:43 -07:00
nshrivas
acf6f16e18 Release 5.2.0.130A
Release 5.2.0.130A

Change-Id: I91faa874eee2f8f9560fb7e99ba40dd6deeb465d
CRs-Fixed: 774533
2019-04-09 22:20:45 -07:00
Srinivas Girigowda
34fbba008b qcacld-3.0: Replace MAC_ADDR_ARRAY with QDF_MAC_ADDR_ARRAY
Replace MAC_ADDR_ARRAY with converged macro QDF_MAC_ADDR_ARRAY.

Change-Id: I8b2779272c32825976a0040e84432a493f83845c
CRs-Fixed: 2431569
2019-04-09 22:20:38 -07:00
jiad
134f78e5a6 qcacld-3.0: Fix SAP per peer REO stats
Currently for SAP mode, issue is only first valid sta is
requested to print REO stats where sta_info pointer does
not move along with the loop.

Fix is to print REO stats for both vdev peer and sta peers
in SAP mode.

Change-Id: I4864dbecace091fd086f184599e108ad3f2e3d37
CRs-Fixed: 2423173
2019-04-09 22:20:32 -07:00
nshrivas
8220f7d7f6 Release 5.2.0.130
Release 5.2.0.130

Change-Id: I3cc375debd1cb105c63aa87a390e7b95717a6807
CRs-Fixed: 774533
2019-04-09 11:56:40 -07:00
Subrat Dash
5f36fbef77 qcacld-3.0: Add gettime of PTP for NON-QC platform
Implement NON-QC platform TSF and TSF PLUS.
Implement gettime of PTP.
Implement TSF PLUS for SAP/GO

CRs-Fixed: 2399624
Change-Id: Id4f41a94256a8f035ae408c168c246569185c534
2019-04-09 11:56:39 -07:00
nshrivas
a4e2da1ab9 Release 5.2.0.129Z
Release 5.2.0.129Z

Change-Id: I11836d2f8aa229b32410176da23993015b7f9251
CRs-Fixed: 774533
2019-04-09 06:37:03 -07:00
Jianmin Zhu
4f3708d75a qcacld-3.0: Fix scan queue not unregistered
Scan queue isn't unregistered, lead to scheduler queue leakage,
after driver module start/stop several times, scheduler queues
are used out, can't register any more.

Change-Id: I98d81591aee25a5e18e560766fb077733eb1b671
CRs-Fixed: 2431696
2019-04-09 06:37:02 -07:00
nshrivas
219208d6fc Release 5.2.0.129Y
Release 5.2.0.129Y

Change-Id: If9b62e08d4ba95f59125821899bc6332efe2cafe
CRs-Fixed: 774533
2019-04-09 04:00:21 -07:00
Ajit Pal Singh
bd3d364871 qcacld-3.0: Disable ol_txrx_peer_release_ref() logs
Disable ol_txrx_peer_release_ref() logs

Change-Id: I8278c76e97e695daa594c057ecf9d40911ac7ccb
CRs-Fixed: 2430023
2019-04-09 04:00:20 -07:00
gaurank kathpalia
23afef1e15 qcacld-3.0: Update only positive nss values from BDF
If the FW doesn't send the ext service ready event, and
thus the host does not get the max chainmask that both
the macs can support, the host still updates the ini
with the minimum of the host, and FW config, which can
lead to functional issues in connection, and scan.

Fix is to honour the setting only if the FW sends a non
zero positive chainmask for both macs.

Change-Id: I2a321923a2f995cca20cef3980acb1bf41ca0db0
CRs-Fixed: 2429584
2019-04-09 04:00:16 -07:00
Wu Gao
c11affcc29 qcacld-3.0: Fix possible NULL pointer dereference about session entry
It will access pointer to session entry before NULL pointer check. So,
fix it and avoid to possible NULL pointer dereference.

Change-Id: I4a62b4600053ccc1eb4b63c3fbce9ebcfe0656ee
CRs-Fixed: 2423715
2019-04-09 04:00:11 -07:00
Arun Kumar Khandavalli
2d83ba1300 qcacld-3.0: Dont create the session from add virt interface
Presently for SAP and p2p go a session is created in the firmware
and umac once the add virtual interface is received. It was
added previously when the session is not supported from the interface
up.

Now driver supports creation of the session from the interface up
for the beaconing entities the legacy code is removed.

Change-Id: Icf6aaac3722cf9292fb1519ba5e0aed74834895f
CRs-Fixed: 2368329
2019-04-09 04:00:07 -07:00
nshrivas
b1dcb371b9 Release 5.2.0.129X
Release 5.2.0.129X

Change-Id: I495e4a2ee418b2105a4a75eaf8f40f74dfac44b8
CRs-Fixed: 774533
2019-04-09 01:53:23 -07:00
nshrivas
40c339ce32 Release 5.2.0.129W
Release 5.2.0.129W

Change-Id: If0f5be2d7247d10edb2b196b40d4fa06769d0e29
CRs-Fixed: 774533
2019-04-08 19:42:36 -07:00
Harprit Chhabada
cb9f73c8b4 qcacld-3.0: Fix possible NULL pointer issues in sme_set_plm_request()
Pointer 'req' is dereference before null check which can lead
to null pointer dereference.

Pointer 'body' is never null check after allocation of memory.
qdf_mem_malloc can return null and when pointer 'body' is
dereference, it can lead to null pointer dereference.

Change-Id: I62f26341079d4849c56f7d35d0b7c64df6b49f3b
CRs-Fixed: 2424010
2019-04-08 19:42:35 -07:00
nshrivas
866f5e543e Release 5.2.0.129V
Release 5.2.0.129V

Change-Id: I79148b988fea0761c9d5937fc512a39e56a692c0
CRs-Fixed: 774533
2019-04-08 15:35:56 -07:00
Pragaspathi Thilagaraj
6695ba9181 qcacld-3.0: Handle assoc IE update sent from userspace
The host driver handles update connect params sent from
userspace and updates the FILS auth type or FILS Erp info based
on the UPDATE_FILS_AUTH_TYPE(2) or UPDATE_FILS_ERP_INFO(1) bit
set in the changed flag.

Handle the association IE update sent from userspace also.
UPDATE_ASSOC_IE(bit 0) will be used to check if assoc IE needs
to be updated. This assoc IE should be sent to firmware. MBO IE
is updated as part of this IEs from the WNM action frame
received by the userspace when setting non preferred channel list
from the AP. If host driver fails to update these IEs to
firmware, MBO IE will not be sent in reassociation request frame
and MBO testcases will fail.

Parse the assoc IE into hdd_adapter->roam_profile. If
parse and validation is successful, copy the assoc IE into
csr_roam_session of the corresponding vdev. Send RSO update
command to firmware, with updated assoc IEs.

Also currently the driver registers update_connect_params
event only if FILS compile flag and UPDATE_CONNECT_PARAMS
flag is enabled. Exclude FILS flag check from this conditional
condition and check only for UPDATE_CONNECT_PARAMS.

Change-Id: I29fadebc9a7fc43937b805f0f041bb86ddf85cbd
CRs-Fixed: 2429665
2019-04-08 15:35:56 -07:00
nshrivas
bb7cf15f9f Release 5.2.0.129U
Release 5.2.0.129U

Change-Id: I57bd78b515b620498ca9fdfb715a806e285c513c
CRs-Fixed: 774533
2019-04-07 22:24:59 -07:00
nshrivas
12924fc780 Release 5.2.0.129T
Release 5.2.0.129T

Change-Id: Idd472a413bdf655a43f6aa45bfe99128c6fc67a0
CRs-Fixed: 774533
2019-04-06 11:35:48 -07:00
Kiran Kumar Lokere
05a618572a qcacld-3.0: Set HE caps to testbed defaults for testbed
Set device HE capabilities to testbed defaults when device is
configured as testbed device.

Change-Id: I5b1d9eb6f0b576f18a5e4d77131354639b0ae2f0
CRs-Fixed: 2428156
2019-04-06 11:35:47 -07:00
Arif Hussain
50689083eb qcacld-3.0: Add support to send bcast capability to firmware
If both INI and FW capability is set,
enable capability flag in twt enable command.

Change-Id: I1c070256c4b672b09a1323665fc5a2f166f951fb
CRs-fixed: 2423752
2019-04-06 11:35:42 -07:00
nshrivas
937f0d1777 Release 5.2.0.129S
Release 5.2.0.129S

Change-Id: Ifd5d0d6f3aa2c2fbccde887b5a21ce6d8906ceed
CRs-Fixed: 774533
2019-04-06 01:54:34 -07:00
Liangwei Dong
b677b9e6ec qcacld-3.0: Update rmf enable flag
Set rmf enabled flag in lim based on crypto component info
for WLAN_CONV_CRYPTO_IE_SUPPORT feature enabled case.

Change-Id: Ibb07531d6073015d67df94e3666883a6785de476
CRs-Fixed: 2421470
2019-04-06 01:54:33 -07:00
Srinivas Girigowda
6177126e67 qcacld-3.0: Consolidate SIR_MAC_EID_* to WLAN_ELEMID_*
Remove the element ID macros defined in qcacld-3.0 and
replace it with the macros defined in qcacmn.

Change-Id: I01a38e3d6c4857eb48868a34e278366ad9d5d099
CRs-Fixed: 2427311
2019-04-06 01:54:29 -07:00
Arif Hussain
9946563033 qcacld-3.0: Fix compilation from wma cleanup
Some cleanup missing from below change, remove the same to fix
compilation issue.
"Ia5b290e3367a894646f138cfeedcb9ab3012e9be"

Change-Id: I5aea8b2c5a00df6c1f8eef6a106918763816fdd0
CRs-Fixed: 2430444
2019-04-06 01:54:24 -07:00
nshrivas
cc0be949cc Release 5.2.0.129R
Release 5.2.0.129R

Change-Id: I0ef0ab98e982fb8b66e7ab024206e70923a69c26
CRs-Fixed: 774533
2019-04-06 00:16:05 -07:00
Harprit Chhabada
be221e6ed9 qcacld-3.0: Populate CFG values in SAP module
Currently HDD is populating SAP configuration values and
sending it down to SAP module instead use the respective
MLME CFG public API's to get the configuration values.
Move following CFG values:
1. auto_channel_select_weight
2. reduced_beacon_interval
3. dfs_preferred_channel_location

Change-Id: Ic0936a9d96d0587d927ea4d906bd659969415847
CRs-Fixed: 2425524
2019-04-06 00:16:00 -07:00
Srinivas Girigowda
d462f3b993 qcacld-3.0: Multiple cleanup regarding access category
1. Replace TX_WMM_AC_NUM/OL_TX_NUM_WMM_AC with QCA_WLAN_AC_ALL
2. Replace SIR_QOS_NUM_AC_MAX with QCA_WLAN_AC_ALL
3. Replace WME_NUM_AC with QCA_WLAN_AC_ALL
4. Fix the typo sme_qos_u_pto_ac_map

CRs-Fixed: 2430527
Change-Id: Id2b4624d60a2bd7dd1471c65699ef0de1b88aecf
2019-04-06 00:15:56 -07:00
nshrivas
2973e69281 Release 5.2.0.129Q
Release 5.2.0.129Q

Change-Id: I62a6d5cf28a6e429c1e41b7590d37a42c901417e
CRs-Fixed: 774533
2019-04-05 15:59:51 -07:00
nshrivas
fb7c6e6c66 Release 5.2.0.129P
Release 5.2.0.129P

Change-Id: I748ed45c25bf85dcd3ed6686e88e1f376fbca75d
CRs-Fixed: 774533
2019-04-05 11:18:25 -07:00
Jeff Johnson
af5452884b qcacld-3.0: Replace typedef tSirWifiIfaceStat
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirWifiIfaceStat typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a properly named struct.

Change-Id: I70f0e8c038d061cb201b52ce07097c68bcb93346
CRs-Fixed: 2428989
2019-04-05 11:18:25 -07:00
nshrivas
d969848189 Release 5.2.0.129O
Release 5.2.0.129O

Change-Id: I3d2d44a2ba05d1720ba3d1299b2185dabcdda18c
CRs-Fixed: 774533
2019-04-05 08:37:20 -07:00
nshrivas
4a1cce0625 Release 5.2.0.129N
Release 5.2.0.129N

Change-Id: I2ca82446ac09f581bb1ae86787f11ca21091b75d
CRs-Fixed: 774533
2019-04-05 03:33:22 -07:00
sheenam monga
0558eb5543 qcacld-3.0: Revert "RSN IE Update in case of BSS already started"
Currently, RSN IE is added to additional IE. Driver does not
generate additional IE .

This reverts commit I2a67156e66e255e7c007a5925cd81b859009114e.

Change-Id: I341897374736483742fa34585e2e8849d4a8a891
CRs-Fixed: 2427098
2019-04-05 03:33:22 -07:00
Abhishek Singh
7c1c7431da qcacld-3.0: Use peer to get the cipher to decide MIC length
Driver uses cipher stored in vdev to get the MIC length, which
may get updated if multiple peer(TDLS peer in STA case) get
connected to the vdev. Thus depending on latest peer cipher type
the MIC length will be calculated for all peers.

To fix store cipher info in peer and use it to calculate MIC length
for the frame.

Change-Id: I8afbf9a3bb43c294dbacbbaa7fa0746600937d11
CRs-Fixed: 2428482
2019-04-05 03:33:17 -07:00
nshrivas
4ada82983f Release 5.2.0.129M
Release 5.2.0.129M

Change-Id: I270eb7bfecef8e39bfdbe182e563b21a1a12bbd1
CRs-Fixed: 774533
2019-04-04 20:58:49 -07:00
Dustin Brown
4a93bb5ffc qcacld-3.0: Enable periodic work tracking
Enable periodic work tracking, recently added in
Id595ba05493ba196e497533ffb4f4e86e33df4b8.

Change-Id: Id33582bf91fe0947c38ee8296ee07d20c8056d98
CRs-Fixed: 2425536
2019-04-04 20:58:49 -07:00
Dustin Brown
c279631e26 qcacld-3.0: Enable delayed work tracking
Enable delayed work tracking, recently added in
Ie02c3577acd443e3f252b9b3a47207e5e2d5fe81.

Change-Id: I6bf718e3c7d9aa72681d0a0ffbabcb304968e229
CRs-Fixed: 2425533
2019-04-04 20:58:44 -07:00
Dustin Brown
ee733ba448 qcacld-3.0: Enable qdf_tracker
Enable the recently added type, qdf_tracker, added in
I3247ace583108139dfb699ca077db3bdf5cfeace.

Change-Id: I8606552354a4aa7945d8e5847f07d4ff89854e95
CRs-Fixed: 2422959
2019-04-04 20:58:36 -07:00
nshrivas
eeb6a2fb64 Release 5.2.0.129L
Release 5.2.0.129L

Change-Id: I9c9e50e4a2cb2f12b754215473ac124005fdd683
CRs-Fixed: 774533
2019-04-04 19:21:27 -07:00
Yeshwanth Sriram Guntuka
86c3dcc99a qcacld-3.0: Free active RRM current req on STA roaming
Scan on channels triggered as part of active mode RRM
beacon report request fails on receiving roaming
indication from firmware due to get_session_id_from_bssid
failure. So current req in RRM PE context will not be freed
and as a result all subsequent beacon report requests will
fail.

Fix is to free current req in RRM PE context on scan
req failure due to STA roaming to a different AP.

Change-Id: Ib911ddcc7538bb5f3711647bb83a1978d1a1af73
CRs-Fixed: 2419044
2019-04-04 19:21:26 -07:00
nshrivas
31303d9ed0 Release 5.2.0.129K
Release 5.2.0.129K

Change-Id: I8e49df16a60c3f0569e0aa80e4478e8fdb7a5b65
CRs-Fixed: 774533
2019-04-04 17:35:39 -07:00
Jeff Johnson
e94ccd0d66 qcacld-3.0: Rename sme_config_params member csrConfig
The Linux Coding Style frowns upon mixed-case names so rename
csrConfig in struct sme_config_params to be in compliance.

Change-Id: I451d728c79608041effed09adb199a357c97c0b5
CRs-Fixed: 2428992
2019-04-04 17:35:39 -07:00
Jeff Johnson
dd821156a1 qcacld-3.0: Replace typedef tCsrConfigParam
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tCsrConfigParam typedef does
not meet any of those criteria, so replace it with a reference to the
underlying struct.

Further note the Linux Coding Style frowns upon mixed-case names so in
conjunction rename the underlying struct to be in compliance.

Change-Id: If6f07ced0a8f92ddf06bc40a042efd6584df147b
CRs-Fixed: 2428991
2019-04-04 17:35:33 -07:00
Jeff Johnson
0fd2f4d169 qcacld-3.0: Remove remaining legacy SME TDLS typedefs
As a result of TDLS componentization the following SME TDLS typedefs
are no longer used, so remove them:
- tSmeTdlsPeerCapParams
- eSmeTdlsPeerState
- tSmeTdlsPeerStateParams
- sme_tdls_chan_switch_params

Change-Id: I6e857aedcbfe7c422425076aeac8c9b882be7513
CRs-Fixed: 2428990
2019-04-04 17:35:28 -07:00
nshrivas
bab0252ef6 Release 5.2.0.129J
Release 5.2.0.129J

Change-Id: I89a3bb04c92004e3c5fa7a9c94b8e6a0a6eeb3dc
CRs-Fixed: 774533
2019-04-04 08:51:22 -07:00
Liangwei Dong
271784b734 qcacld-3.0: Use correct struct type tSetBssKeyParams
When CRYPTO_SET_KEY_CONVERGED enabled, the set bss key
will use tSetBssKeyParams in wma_send_set_key_rsp.

Change-Id: Ief0c822c637ac06dc241a682c060f19bb946fea2
CRs-Fixed: 2402889
2019-04-04 08:51:22 -07:00
Liangwei Dong
a44d55b68a qcacld-3.0: Use converged pmkid cache
When WLAN_CONV_CRYPTO_IE_SUPPORT enabled, pmkid should be
saved to crypto component by crypto API. Otherwsie RSN ie
construction will have no pmkid info to add to rsn ie buf.

Change-Id: I8643aca794dcb42323d3d051e7a15a0597167ed6
CRs-Fixed: 2402775
2019-04-04 08:51:17 -07:00
nshrivas
899d7a97d0 Release 5.2.0.129I
Release 5.2.0.129I

Change-Id: I5f98ebfa9b9419246e757ce301870a093de915e3
CRs-Fixed: 774533
2019-04-04 03:36:45 -07:00
Abhishek Singh
2913bd11f5 qcacld-3.0: Select def chan if no chan is safe in ACS chan list
If no channel is safe in ACS channel list, select default channel
instead of returning start failure for SAP.

Change-Id: I974a573f5000720a62e58aaff5a71412c2fae7bf
CRs-Fixed: 2424847
2019-04-04 03:36:44 -07:00
nshrivas
1b1f22d5db Release 5.2.0.129H
Release 5.2.0.129H

Change-Id: I1095648b3525de4ae389175fecf3cfe6eeb8903c
CRs-Fixed: 774533
2019-04-04 01:52:23 -07:00
Rakshith Suresh Patkar
5e1fdeec4d qcacld-3.0: Add check for wlan_suspended in __hdd_tx_timeout
When scheduler thread is suspended, it will not process
any messages until it is resumed. If messages are posted
to scheduler thread when it is suspended, it will lead
to KP due to scheduler buffer becoming full.

Add check for hdd_ctx->hdd_wlan_suspended in __hdd_tx_timeout
before posting any message to scheduler.

Change-Id: Ic0bc6ec0dda23e2a6eaf59adb21f0bca5f2707df
CRs-Fixed: 2428339
2019-04-04 01:52:22 -07:00
nshrivas
91675f36ff Release 5.2.0.129G
Release 5.2.0.129G

Change-Id: I12ee8c2f5b9b5b844841d08877e91cb106a1c826
CRs-Fixed: 774533
2019-04-03 23:52:42 -07:00
Arif Hussain
5393734002 qcacld-3.0: Remove unused code from wma
Remove unused members from wma_txrx_node,
t_wma_handle structures and related code.

Change-Id: Ia5b290e3367a894646f138cfeedcb9ab3012e9be
CRs-Fixed: 2412738
2019-04-03 23:52:41 -07:00
nshrivas
65acfc134a Release 5.2.0.129F
Release 5.2.0.129F

Change-Id: Ia35c46e63f86113f4bfb63c672df6b99ea02e6a0
CRs-Fixed: 774533
2019-04-03 20:27:56 -07:00
Harprit Chhabada
a9ff69cd95 qcacld-3.0: Populate CFG values in SAP module
Currently HDD is populating SAP configuration values and
sending it down to SAP module instead use the respective
MLME CFG public API's to get the configuration values.

Move following CFG values:
1. sap_chanswitch_beacon_cnt
2. sap_chanswitch_mode
3. protEnabled
4. chan_switch_hostapd_rate_enabled
5. tx_leakage_threshold
6. ht_capab
7. UapsdEnable
8. obssProtEnabled

Change-Id: Id62492d5374b9a3f8ab9cbf57e474cc9f78a791d
CRs-Fixed: 2411126
2019-04-03 20:27:55 -07:00
nshrivas
567a868cf2 Release 5.2.0.129E
Release 5.2.0.129E

Change-Id: If080a068bb1e25d9c470235672499f7a0bdfb740
CRs-Fixed: 774533
2019-04-03 11:22:46 -07:00
Venkata Sharath Chandra Manchala
702be3e4f1 qcacld-3.0: Handle memory allocation for rx threads appropriately
Avoid allocating and initializing memory for rx threads when
in monitor mode as they are not used.

Change-Id: I7521697e3f7033e85fad0b416d8a34aab28755d5
CRs-Fixed: 2424812
2019-04-03 11:22:46 -07:00
nshrivas
1565987ce6 Release 5.2.0.129D
Release 5.2.0.129D

Change-Id: Ib99cf518092f9d78270b044366f3ab814b845a73
CRs-Fixed: 774533
2019-04-03 03:40:22 -07:00
Jeff Johnson
5d9a70ffde qcacld-3.0: Remove HDD identifier linkLayer_stats_results
The Linux Coding Style frowns upon mixed-case names so
wlan_hdd_cfg80211_link_layer_stats_ext_callback() variable
linkLayer_stats_results is not compliant. But rather than
rename it, just remove it, since its use does not really
improve the code.

Change-Id: I5f8c6e5473d64d03662e664a474ad4293ca7310d
CRs-Fixed: 2427185
2019-04-03 03:40:22 -07:00
Jeff Johnson
b757e24ae7 qcacld-3.0: Rename HDD identifier vdevId
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier vdevId to be compliant.

Change-Id: Ia1328dec457b3bcacdeb53df87684469e8b875fc
CRs-Fixed: 2427184
2019-04-03 03:40:15 -07:00
Jeff Johnson
7d419fa2a9 qcacld-3.0: Rename HDD identifier numInterfaces
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier numInterfaces to be compliant.

Change-Id: Ie2cb20a4446b02ef1c4724f4cdecc90c6aba7b82
CRs-Fixed: 2427183
2019-04-03 03:39:20 -07:00
Jeff Johnson
2acf009168 qcacld-3.0: Rename HDD identifier deviceMode
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier deviceMode to be compliant.

Change-Id: I24c3ffc1c477eb65ebb04ea1434d1902b1fec343
CRs-Fixed: 2427182
2019-04-03 03:39:15 -07:00
Jeff Johnson
a540edea25 qcacld-3.0: Remove HDD identifier staMac
The Linux Coding Style frowns upon mixed-case names so variable staMac
in hdd_get_interface_info() is not compliant. But rather than rename
it, just remove it, since its use does not really improve the code.

Change-Id: If4db592fe2b7728d7c03c1415c9d9e8aeb7c1cf2
CRs-Fixed: 2427181
2019-04-03 03:39:05 -07:00
Jeff Johnson
0bbf383848 qcacld-3.0: Rename HDD identifier pInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pInfo to be compliant.

Change-Id: I4c3a95d2356023872e8d868c6f6d8e8607312329
CRs-Fixed: 2427180
2019-04-03 03:39:00 -07:00
Jeff Johnson
b16fd94f48 qcacld-3.0: Rename HDD identifier pData
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pData to be compliant.

Change-Id: Ibcbc03bbe11033f4a44728603d9184f5b188db18
CRs-Fixed: 2427179
2019-04-03 03:38:55 -07:00
Jeff Johnson
05bf6d147a qcacld-3.0: Rename HDD identifier pWifiRadioStat
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pWifiRadioStat to be
compliant.

Change-Id: I2728a0e2a4244caf70aa96fce291df3d7eef681b
CRs-Fixed: 2427178
2019-04-03 03:38:50 -07:00
Jeff Johnson
a1382385ce qcacld-3.0: Rename HDD identifier padapter
The Linux Coding Style frowns upon so-called Hungarian notation so
rename HDD identifier padapter to be compliant.

Change-Id: I5fcc20ea16f088b4ec0001425b069a14ecf9c4d8
CRs-Fixed: 2427177
2019-04-03 03:38:46 -07:00
Jeff Johnson
fd7d1ef9b1 qcacld-3.0: Rename HDD identifier phddctx
The Linux Coding Style frowns upon so-called Hungarian notation so
rename HDD identifier phddctx to be compliant.

Change-Id: I36541226f54efd2421772cebc233566f16ed8039
CRs-Fixed: 2427176
2019-04-03 03:38:41 -07:00
Jeff Johnson
48b1eb05ef qcacld-3.0: Replace typedef tSirWifiRadio
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirWifiRadio typedef does not
meet any of those criteria, so replace it with uint32_t.

Change-Id: I5f733f4a4aa07803c3719108169e6aeb98293c5e
CRs-Fixed: 2427175
2019-04-03 03:38:36 -07:00
Jeff Johnson
e4bba7c043 qcacld-3.0: Replace typedef tSirWifiRadioStat
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirWifiRadioStat typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a properly named struct.

In addition the Linux Coding Style frowns upon mixed-case names so
rename the members which are currently not compliant.

Also remove the obsolete tx_time_per_tpc array since it is unused.

Change-Id: I40aa287e01dc8d12ba803858cc54e79a6fccb8c9
CRs-Fixed: 2427174
2019-04-03 03:38:32 -07:00