Commit Graph

16734 Commits

Author SHA1 Message Date
Srinivas Dasari
9ad9e25ed6 qcacld-3.0: Send roam control status to userspace upon querying
Userspace may configure and enable roam control and query for
the status. Add provision to send the same as vendor cmd reply

Change-Id: I7b82f85fa560c974eedc5115276bd87a84f9d3a0
CRs-Fixed: 2508802
2019-08-23 01:42:55 -07:00
nshrivas
2454638d42 Release 5.2.0.145L
Release 5.2.0.145L

Change-Id: Ifede718438805bf44e7926ec7d6964bd6749ddc7
CRs-Fixed: 774533
2019-08-22 20:14:06 -07:00
Alan Chen
2239688fd3 qcacld-3.0: Remove NaN offloading option
Firmware only supports offloading in STA and P2P CLI mode, so remove
NaN offloading option.

Change-Id: I1adb8ead32a0d45a34f72590c33309b17d6c80c0
CRs-Fixed: 2512426
2019-08-22 20:14:05 -07:00
nshrivas
109938e4ea Release 5.2.0.145K
Release 5.2.0.145K

Change-Id: Id686a5d44389cb29d8b4b67d9470c935b7457f2b
CRs-Fixed: 774533
2019-08-22 16:21:40 -07:00
Alan Chen
91525f33ba qcacld-3.0: Move hif context assignment to right before its usage
When wifi is off, unnecessary error logs are printed. To avoid these logs
from printing, move hif context assignment to right before its usage.

Change-Id: Ie2313f796674885a7a518693a09877df4e6cb817
CRs-Fixed: 2513187
2019-08-22 16:21:40 -07:00
nshrivas
5be799467d Release 5.2.0.145J
Release 5.2.0.145J

Change-Id: If3d8795069e60fba2be1f9382ac5cf365f26dd79
CRs-Fixed: 774533
2019-08-22 12:35:10 -07:00
Abhishek Ambure
40972f18dd qcacld-3.0: Clean up set link code
Legacy code for set link is removed. Set link code is refactored.

Change-Id: I97c5fde76b8529d21c16c7650e32c91dffaae2f2
CRs-Fixed: 2513049
2019-08-22 12:35:09 -07:00
Abhinav Kumar
4f959589b8 qcacld-3.0: Convert channel to freq in tpAddBssParams structure
Topic: 6ghz_chan_to_freq

Convert channel to freq in tpAddBssParams and wma_vdev_start_req
structure to avoid duplicate channel numbers in 6ghz, and 2.4ghz
operation.

Change-Id: I8f657a566d1555efa07bf9155b84c37431c57f86
Crs-Fixed: 2511312
2019-08-22 12:34:54 -07:00
Srinivas Dasari
b6798ec303 qcacld-3.0: Restore the params upon roam control config disable
Userspace disables the roam control config once it's done with
the controlled roaming. Driver should restore the params changed
by roam control config enable and proceed with roaming as per
its default behavior.
Restore the below params which are getting modified as per
the current implementation,
1. Roam trigger bitmap
2. Scoring
3. Scan period
4. Full scan period

Change-Id: I1be699825bdd798f20a3432ebccb922ade67f89b
CRs-Fixed: 2508780
2019-08-22 12:34:47 -07:00
Srinivas Dasari
5fb8190eca qcacld-3.0: Enable/disable scoring based on vendor command
Userspace can disable/enable scoring for roam candidate
selection through roam subcmd and the attribute
QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_ENABLE.

Firmware supports the below configurations currently,
1. Default selection criteria where all selection criteria
   are enabled and different weightages/scores are given to
   different criteria.
   This will be enabled when userspace doesn't specify any
   candidate selection criteria.
2. Legacy candidate selection criteria where scoring
   algorithm is disabled and only RSSI is considered for
   roam candidate selection.
   this will be enabled when userspace specify 100% weightage
   for RSSI.
Rest of the combinations are not supported for now.

Update the RSO config whenever scoring is enabled/disabled

Change-Id: Ibb787ef5433eebbdd3633748135ba6e314c931b6
CRs-Fixed: 2508778
2019-08-22 12:34:42 -07:00
Srinivas Dasari
391692d2da qcacld-3.0: Cache the status of roam control enable/disable in CSR
Userspace enables the roam control config and may query for it
later. In order to indicate the current status to userspace,
cache the same in struct sCsrNeighborRoamControlInfo

Change-Id: Ib535d6940df48305bda74a624604217d1f968861
CRs-Fixed: 2508777
2019-08-22 12:34:38 -07:00
Srinivas Dasari
f4e1b1208c qcacld-3.0: Send roam triggers from vendor cmd to firmware
Userspace can configure different roam triggers as defined
in qca_vendor_roam_triggers through the roam subcmd
QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET and the
attribute QCA_ATTR_ROAM_CONTROL_TRIGGERS. Send the roam trigger
bitmap to firmware

Change-Id: I692110a2ae1ee5a35bb248b9138080a7dfb02cf6
CRs-Fixed: 2508776
2019-08-22 12:34:34 -07:00
Srinivas Dasari
0628e84a29 qcacld-3.0: Configure full scan period from vendor cmd to firmware
Userspace can update the full scan period through the roam subcmd
QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET and the attribute
QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD. Send the same to firmware
as part of roam scan offload command

Change-Id: I7c1046763d693faa3340b655848d3306ef92e06c
CRs-Fixed: 2508775
2019-08-22 12:34:29 -07:00
Abhishek Singh
0acd0c4df4 qcacld-3.0: Fill proper vdev id in add bss req bss_id
Add bss req bss_id vdev_id is not set to vdev id and thus if vdev start
fails, wma_remove_peer_on_add_bss_failure try to delete
peer from vdev id 0 instead of proper vdev_id.

Fix is to set proper vdev id to add bss req bss_id.

Change-Id: I9bbe7daf03fe2872d7026872e8dd7818840f9345
CRs-Fixed: 2513007
2019-08-22 12:34:25 -07:00
nshrivas
3b683d7c7e Release 5.2.0.145I
Release 5.2.0.145I

Change-Id: Ica7e9c15d8d7acf25ddc990fb184dce4ac342f84
CRs-Fixed: 774533
2019-08-22 08:45:36 -07:00
Srinivas Dasari
25d77b28e7 qcacld-3.0: Configure preferred freq list as dynamic chan list
Configure the preferred channel list received from vendor
roam subcmd command ROAMING_SUBCMD_CONTROL_SET as dynamic channel
list to firmware. Combine this channel list with the existing
occupied channel list and send to firmware. Flush this channel
list as part of csr_cleanup

Change-Id: Ibc45291f72844331096cb460257cab6f0b0095dc
CRs-Fixed: 2507159
2019-08-22 08:45:36 -07:00
Qun Zhang
3e96c89d1a qcacld-3.0: Update SAE frame session id to avoid using invalid id 0
In current SAE implementation, lim_process_sae_auth_frame() and
lim_process_sae_preauth_frame() all pass parameter session id 0
to lim_send_sme_mgmt_frame_ind(). In some test case, once vdev
id 0 is removed, hdd_indicate_mgmt_frame() can not get adapter
through vdev id 0, then SAE frame will not forward to supplicant.
Update SAE frame session id to make sure at least one adapter can
be found. Once adapter is available, __hdd_indicate_mgmt_frame()
can get the expected interface through destination mac address.

Change-Id: I3e8f430c4760448c6cc8dab9464979371de86118
CRs-Fixed: 2507342
2019-08-22 08:45:31 -07:00
Ashish Kumar Dhanotiya
cf3cf662ed qcacld-3.0: Free vdev from objmgr if vdev_create fails
When vdev create happens, objmgr creates vdev and stores
vdev_id into adapter, vdev_create message is posted to
scheduler thread and driver wait for the session_open_event
to be completed. Before this event completes if SSR
occures, session open event is forcefully set which leads
to the failure of vdev create. In current implementation
in case of force event set, driver returns without
destroying the vdev from objmgr which leads to vdev leak
in stop modules.

To resolve above issue, destroy vdev from objmgr in
case if vdev create fails.

Change-Id: Id0bbde0085d2b4d91b0590e3bb8a7798cd0ba0fa
CRs-fixed: 2505590
2019-08-22 08:45:27 -07:00
Wu Gao
efd73546c8 qcacld-3.0: Check peer phymode only if DUT is SAP/GO
Force set peer's phymode to the phymode of current interface if first
one big then second one, then TDLS link can't select more better
phymode when DUT support VHT mode and connect to 11A mode AP.

Change-Id: Idc72e04dcdf7ead3b52effc2c06862bc9dddd732
CRs-Fixed: 2512622
2019-08-22 08:45:22 -07:00
nshrivas
e2c0cd722c Release 5.2.0.145H
Release 5.2.0.145H

Change-Id: I94b65199261a92cf710fe89ecbb1e0f972755f50
CRs-Fixed: 774533
2019-08-22 07:31:12 -07:00
Vevek Venkatesan
e81bca8057 qcacld-3.0: cleanup IPA STA iface, if STA disconnect failed
If STA disconnect failed for any reason, cleanup IPA STA iface
if not already done.

Change-Id: I27ff33324bc4724e8470af9a0c434fa03e8aa5c3
CRs-Fixed: 2505563
2019-08-22 07:31:12 -07:00
nshrivas
6b5f63ea1d Release 5.2.0.145G
Release 5.2.0.145G

Change-Id: Ia201b376f29db6032aeb386757633b013a89fc85
CRs-Fixed: 774533
2019-08-22 04:23:50 -07:00
Vulupala Shashank Reddy
6d6f68d04b qcacld-3.0: Fix possible NULL pointer de-reference
Fix possible NULL pointer de-reference in functions
peer_unmap_timer_handler().

Change-Id: I2ec6af12b1f8232a247729fd658c2d51ff163405
CRs-Fixed: 2512610
2019-08-22 04:23:24 -07:00
nshrivas
769827b015 Release 5.2.0.145F
Release 5.2.0.145F

Change-Id: I1ba8f1f89fb006d4f697034b71ddbc6301b5e5b7
CRs-Fixed: 774533
2019-08-22 01:37:51 -07:00
hangtian
0f76fdfac0 qcacld-3.0: Set hidden_ssid when restart sap on another channel
Set hidden_ssid when restart sap on another channel, currently tested 2
methods to restart sap on another channel: 1, force-scc switch to station
channel; 2, iwpriv wlan1 setChanChange x. Both of them run into error
state: with hidden_ssid set in hostapd.conf: ignore_broadcast_ssid=1,
after channel switch, APUT reply broadcast probe request with it's SSID.
Copy pe session parameter: ssidHidden which stored user setting to next
channel vdev start.

Change-Id: I56580529e2b0db673c6b28c75094a7fd225cba77
CRs-Fixed: 2506214
2019-08-22 01:37:50 -07:00
Abhishek Ambure
2bd960b047 qcacld-3.0: Clean up del bss param structure
Unused members of delete bss params structure are removed
and structure is re-framed.

Change-Id: Ib2e7c72e0636765341792a79aa12968a84ed4879
CRs-Fixed: 2512877
2019-08-22 01:37:44 -07:00
nshrivas
dd19316e23 Release 5.2.0.145E
Release 5.2.0.145E

Change-Id: I7f190d8f7efb9f87ad6f6796a4beca26d96fe889
CRs-Fixed: 774533
2019-08-21 16:26:29 -07:00
Rajeev Kumar
f06009a8d2 qcacld-3.0: Allow system suspend to complete when wifi is off
When wifi is off wlan module is closed and hence allow cfg80211
suspend/resume to pass and return success to kernel.

Change-Id: Ic7d43a690c75be1254afa97f872d5c8228f93fcc
CRs-Fixed: 2512492
2019-08-21 16:26:29 -07:00
nshrivas
3c73e07780 Release 5.2.0.145D
Release 5.2.0.145D

Change-Id: I029f202c3270ff5a28a9328f6e4c7b39bf3b0ee3
CRs-Fixed: 774533
2019-08-21 10:10:23 -07:00
Sourav Mohapatra
ebcbae20cc qcacld-3.0: Declare hdd_roam_deregister_tdlssta as static
Currently the function hdd_roam_deregister_tdlssta is not declared
as static when the macro FEATURE_WLAN_TDLS is not defined. This can
cause a multiple definition error.

Declare the function as static so as to avoid this build time error.

Change-Id: Id85f8bed57a7bdfbeac5722ea687066f7f74a50f
CRs-Fixed: 2511744
2019-08-21 10:10:22 -07:00
nshrivas
b838eb76cf Release 5.2.0.145C
Release 5.2.0.145C

Change-Id: I3743f1adbcd410107c0b7d0dfd185157314f7d9b
CRs-Fixed: 774533
2019-08-21 05:29:55 -07:00
Srinivas Dasari
b78334d5ef qcacld-3.0: Cleanup roam scan channels configuration
Currently roam channel list is directly accessed from
mac->roam.neighborRoamInfo[sessionId].cfgParams.channelInfo
in multiple APIs to set/clear.
This needs to be enhanced as as firmware supports two channel
lists(static and dynamic) for roam scan, userspace may configure
both the lists. Cleanup the APIs to accommodate both of the
channel lists. Rename the variable channelInfo of cfgParams to
specific_chan_info to suit the usage.

Change-Id: I67548bc040c2296b75b9429f5891a5251a2a88d6
CRs-Fixed: 2507157
2019-08-21 05:29:55 -07:00
Abhishek Ambure
d75086a6f0 qcacld-3.0: Do not release start wakelock in vdev down
Legacy code releases vdev start wakelock after vdev down
command sent to firmware to overcome race condition. Target_if
common code takes care for wakelocks.

Hence, do not release start wakelock in legacy code.

Change-Id: I550ffb17e2e29f3b0bad618dc9ef9463a94800aa
CRs-Fixed: 2512151
2019-08-21 05:29:50 -07:00
Bala Venkatesh
42e07eac72 qcacld-3.0: Avoid NULL pointer access
In function wlan_hdd_set_sap_csa_reason, sap_ctx pointer is
dereferenced without NULL check.

Add NULL check to avoid null pointer access.

Change-Id: I74bbfdcae6d5a06d5eaf0cd66e3ff9c3380c6bb0
CRs-Fixed: 2512034
2019-08-21 05:29:46 -07:00
nshrivas
e368d10bf1 Release 5.2.0.145B
Release 5.2.0.145B

Change-Id: Ibd9a6b475733f52b68c6ff0b03d3273e274891b7
CRs-Fixed: 774533
2019-08-21 00:06:02 -07:00
Subrat Dash
b1e61b2083 qcacld-3.0: Add support for gpio based strobe to capture tsf
Add configuration for gpio pin used to send strobe to wlan hw.

The host driver will latch the current time and toggle the gpio
to generate a strobe to wlan hw.

The tsf will be latched on detecting the strobe and it will be
made available in a register for sw access.
The wlan fw will read this tsf and report it to driver using tsf event.

Change-Id: I4365d97d22836ddbbd2bf9913d4f723e5a870369
CRs-Fixed: 2495152
2019-08-21 00:06:01 -07:00
nshrivas
bcb1a96d5a Release 5.2.0.145A
Release 5.2.0.145A

Change-Id: I9ef4d261410d20fd30a2970f82be0c757ad31862
CRs-Fixed: 774533
2019-08-20 22:53:50 -07:00
Abhishek Singh
682cf6f843 qcacld-3.0: Fix WMI timeout for runtime PM
For runtime PM if the bus is suspended driver need to consider
extra 6 sec time for bus resume.
Thus add 6 sec extra in WMI timeouts if runtime PM is supported.

Change-Id: I5515cc889a0315382bac11a33ea6f901b7af1c46
CRs-Fixed: 2507029
2019-08-20 22:53:50 -07:00
nshrivas
35d3347505 Release 5.2.0.145
Release 5.2.0.145

Change-Id: I8b170cf2c62625d665c2d46e9cfc1215110f2ba5
CRs-Fixed: 774533
2019-08-20 20:26:36 -07:00
Alan Chen
3018129b66 qcacld-3.0: Complete the wait for event if register driver fails
Complete the wait for event if register driver fails during insmod.

Change-Id: I1855d7304b63a926e328c8713a317d6be2b22d0e
CRs-Fixed: 2512236
2019-08-20 20:26:35 -07:00
nshrivas
5ffad4d80a Release 5.2.0.144Z
Release 5.2.0.144Z

Change-Id: I3f620d95ad779919e44de7174ca946ae9cdf2b46
CRs-Fixed: 774533
2019-08-20 14:38:32 -07:00
Nirav Shah
7f37dbea19 qcacld-3.0: Fix DHCP indication to FW feature in SAP for HL
In case of HL, send tx completion bit in HTT tx descriptor
to receive tx completion from FW and disable DHCP indication
to FW properly.

Change-Id: Iff8e0c1f5d95c4f62af8b498552d92b57006969c
CRS-Fixed: 2506011
2019-08-20 14:38:32 -07:00
nshrivas
86f222418b Release 5.2.0.144Y
Release 5.2.0.144Y

Change-Id: Ica9a04135069bbdc5e1d62e0320c3a1ea1ba4f3a
CRs-Fixed: 774533
2019-08-20 05:19:34 -07:00
Jianmin Zhu
ef22819b7f qcacld-3.0: Refactor lim add bss rsp handler
Replace lim functions parameter struct scheduler_msg
with struct bss_params.
Internal functions don't need param struct scheduler_msg,
wma can call lim API: lim_handle_mlm_add_bss_rsp directly
instead of post msg.

Refactor struct bss_params memory free method.
whether success or fail when handle lim add bss rsp,
struct bss_params memory need free, it is simple and
clear to free only in one place: end of
lim_handle_mlm_add_bss_rsp.

Change-Id: I2d5d647a6949b1e0bdfbbe9a4dfb390a362a75ee
CRs-Fixed: 2508876
2019-08-20 05:19:33 -07:00
Lin Bai
96f6609e86 qcacld-3.0: Rename last_acs_channel_list to last_acs_freq_list
This member renamed by another change recently, and change here
accordingly to avoid compilation issue.

Change-Id: I65903cdb5255deca4b4a83daceec178790e76501
CRs-Fixed: 2505462
2019-08-20 05:19:28 -07:00
Pragaspathi Thilagaraj
1c17ee93f7 qcacld-3.0: Set correct op_flag in sme_set_del_pmkid_cache
Currently the host driver sets PMKSA op_flag for flush and
delete PMKSA entry as in both the cases PMK length is 0.
This is not correct because for delete PMKSA command only
the bssid and SSID will be sent to the firmware.
For the host driver to distinguish between del_pmksa and
flush pmksa, the is_flush_all flag should be used.
is_flush_all: true - Flush pmksa
is_flush_all: false - set/del pmksa based on the action flag.

Change-Id: I7eac65317a9c6904cfd08acce328a65df451269e
CRs-Fixed: 2503372
2019-08-20 05:19:22 -07:00
nshrivas
d384a3f3b8 Release 5.2.0.144X
Release 5.2.0.144X

Change-Id: I6e03041a83005cca927cda1f0e90e04a65365e24
CRs-Fixed: 774533
2019-08-20 03:59:24 -07:00
Rakshith Suresh Patkar
73654d0a34 qcacld-3.0: Cleanup ol_txrx_flush_cache_rx_queue [PEER_ID_PHASE1]
Cleanup ol_txrx_flush_cache_rx_queue to find peer
from peer_list instead of sta_id.

Change-Id: Ia737e732051f3cdad53b1a552eb273b8a05562aa
CRs-Fixed: 2508259
2019-08-20 03:59:24 -07:00
Sourav Mohapatra
efb49da46e qcacld-3.0: Clean up the usage of sta_to_adapter in HDD
The mapping of sta_id to the adapter in hdd context stores the adapter
with respect to the corresponding sta_id. Currently, the mapping is not
used anywhere in the driver even though the adapters are stored in it.

As there is no usage for the mapping, remove it as a part of sta_id
cleanup effort.

Change-Id: I26590a69e61d82f723a83eb3f9f24c42afa6c5a2
CRs-Fixed: 2511767
2019-08-20 03:59:20 -07:00
nshrivas
8f97145518 Release 5.2.0.144W
Release 5.2.0.144W

Change-Id: Idb8f04034b6a443df766f09b7fc139e50dadcb27
CRs-Fixed: 774533
2019-08-20 02:39:26 -07:00