Commit Graph

15652 Commits

Author SHA1 Message Date
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
0332a6ca4a qcacld-3.0: Avoid missing hidden AP when search scan db by ssid
Roam channel map is got by searching current ssid in scan db,
For hidden ssid, probe resp has ssid, but beacon usually has NULL
ssid. we'd better keep ssid from probe resp as long as possible,
don't override with NULL ssid from beacon as WIN's way.

Change-Id: Ia9295832926129a1f9f29785703d44e8268e750d
CRs-Fixed: 2427355
2019-04-18 17:02:10 -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
Bala Venkatesh
4a3de4526f qcacld-3.0: Do not reset the TDLS peer link status to idle
As part of every scan, TDLS component is notified.
TDLS component takes decision to allow the scan or not.
But after rejecting the scan for max no of times.
TDLS peer link status is set to idle which is not expected.
Overwriting this link status can lead to not finding the
peers to cleanup while 2nd interface is added.

Change-Id: I1a0120399118ef7e9168dbcb7b5009a88e000d5c
CRs-Fixed: 2435694
2019-04-18 17:02:01 -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
Lin Bai
003e4fbe23 qcacld-3.0: Disable dsc_debug log in perf-build
dsc_debug() is impacting IPA tput, as
introduced by Ib8e1fc1e16785dfe3c5f8273e4ad8d5d6ecdb6e6.

Disable debug level DSC log in perf-build.

Change-Id: I2a18e44879b9301067844cfc6e56f57bb5588c74
CRs-Fixed: 2435880
2019-04-18 02:33:16 -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
Bala Venkatesh
c59b7a1c0c qcacld-3.0: Free rx_mgmt in function tdls_process_rx_frame
Currently, in function tdls_process_rx_frame. If vdev is
NULL then rx_mgmt memory is not freed.

Free the rx_mgmt memory before returning from function
tdls_process_rx_frame.

Change-Id: I5be27a7fa8a9417f578e406f3f9e8c7394439fa8
CRs-Fixed: 2436241
2019-04-18 00:28:08 -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
Rakshith Suresh Patkar
8009443ffd qcacld-3.0: Remove vdev sanity while sending IPA evt
When vdev is logically deleted, vdev reference will
be returned as NULL by objmgr.

Remove vdev sanity from QDF_BUG while sending IPA evt
in __wlan_ipa_wlan_evt.

Change-Id: Ie7f9697768d53c71a6bead377c35bbc3f62e808a
CRs-Fixed: 2433521
2019-04-16 19:57:43 -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
Sandeep Puligilla
2c8d6217c9 qcacld-3.0: Enable VDEV manager on genoa platform
Enable VDEV manager on genoa platform.

Change-Id: Ifd037902c7b47ce17edfec5544b74108e3f54a13
CRs-Fixed: 2433803
2019-04-16 02:50:11 -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
Bala Venkatesh
1c66bfb5fd qcacld-3.0: Revert back the default INI values
Enable the below INI values by default
enable_esp_for_roam
oce_enable_probe_req_deferral
oce_enable_probe_req_rate

Change-Id: Ie707e9707e3cbdbc2f6bef17b35d6d74513daba7
CRs-Fixed: 2434825
2019-04-15 17:44:05 -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