Commit Graph

17262 Commits

Author SHA1 Message Date
CNSS_WLAN Service
f91529332f Merge "Release 5.2.0.152Y" into wlan-cld3.driver.lnx.2.0 2019-10-18 05:15:37 -07:00
CNSS_WLAN Service
804c8208dd Merge "qcacld-3.0: Prevent possible NULL pointer dereference" into wlan-cld3.driver.lnx.2.0 2019-10-18 05:15:36 -07:00
CNSS_WLAN Service
5b56df86b5 Merge "Release 5.2.0.152X" into wlan-cld3.driver.lnx.2.0 2019-10-17 20:27:08 -07:00
CNSS_WLAN Service
d164ef878d Merge "qcacld-3.0: Enabling METERING Feature for lito" into wlan-cld3.driver.lnx.2.0 2019-10-17 20:27:07 -07:00
CNSS_WLAN Service
5f69f9056f Merge "Release 5.2.0.152W" into wlan-cld3.driver.lnx.2.0 2019-10-17 20:27:06 -07:00
CNSS_WLAN Service
e0a20fd655 Merge "qcacld-3.0: Send RSO stop for supplicant disabled roam" into wlan-cld3.driver.lnx.2.0 2019-10-17 20:27:04 -07:00
CNSS_WLAN Service
baf2e0bd1e Merge "Release 5.2.0.152V" into wlan-cld3.driver.lnx.2.0 2019-10-17 20:27:03 -07:00
CNSS_WLAN Service
2f91765e9f Merge "qcacld-3.0: Move stack allocations to heap" into wlan-cld3.driver.lnx.2.0 2019-10-17 20:27:02 -07:00
CNSS_WLAN Service
49910119d7 Merge "Release 5.2.0.152U" into wlan-cld3.driver.lnx.2.0 2019-10-17 20:27:01 -07:00
CNSS_WLAN Service
5691eb30a4 Merge "qcacld-3.0: fix compile error in cdp_fc_get_tx_resource API" into wlan-cld3.driver.lnx.2.0 2019-10-17 20:27:00 -07:00
CNSS_WLAN Service
bd06ef44f8 Merge "qcacld-3.0: Add ini to disable aggressive EDCA config" into wlan-cld3.driver.lnx.2.0 2019-10-17 20:26:59 -07:00
nshrivas
64a3147e30 Release 5.2.0.152Y
Release 5.2.0.152Y

Change-Id: Ic7fa7f8c9415a065310fd9d587ca2b3ca884ccbc
CRs-Fixed: 774533
2019-10-17 00:41:10 -07:00
Sourav Mohapatra
5778c1db26 qcacld-3.0: Prevent possible NULL pointer dereference
The function wma_wake_event_piggybacked gets the pointer to pdev object
by calling cds_get_context with the respective module ID. This pdev
pointer is then passed on down the stack to CDP APIs where there are no
explicit NULL check to validate the same. In the case the pdev is NULL,
this can go on to cause a NULL pointer dereference.

Add a validation check on the PDEV pointer to avoid this.

Change-Id: Ifecd6853445c6df5e16e6310beb2bf7cbc6997a0
CRs-Fixed: 2524604
2019-10-17 00:41:10 -07:00
nshrivas
31b2b5aeb7 Release 5.2.0.152X
Release 5.2.0.152X

Change-Id: I6fc40f75778a32d174e8f85b78438baa2f612c8f
CRs-Fixed: 774533
2019-10-16 15:39:07 -07:00
Vevek Venkatesan
78382d89e7 qcacld-3.0: Enabling METERING Feature for lito
Enable CONFIG_QCACLD_FEATURE_METERING Feature for lito
in default_defconfig

Change-Id: I70e004e34dbea0690503c5990b2bf83089873898
CRs-Fixed: 2545739
2019-10-16 15:39:06 -07:00
nshrivas
11a71a065c Release 5.2.0.152W
Release 5.2.0.152W

Change-Id: I6b85844957f9bc0de47a06f466fe03823200f7cf
CRs-Fixed: 774533
2019-10-16 14:21:55 -07:00
Pragaspathi Thilagaraj
57de52771d qcacld-3.0: Send RSO stop for supplicant disabled roam
If supplicant disabled roaming, driver does not send RSO cmd to
fw. This causes roam invoke to fail in FW since RSO start never
happened at least once to configure roaming engine in FW.
So when supplicant disabled roaming on a vdev, send RSO start on
the vdev and then follow it with RSO stop command.

So when supplicant disabled roaming, disable the firmware
roam scans alone and allow roam invoke.

Change-Id: Ic3def72c6b60c42269d99e6db30cf3bfd1988d70
CRs-Fixed: 2543865
2019-10-16 14:21:55 -07:00
nshrivas
0efe854eed Release 5.2.0.152V
Release 5.2.0.152V

Change-Id: Ibd2515dbcc0934623ccf3041cbfff0b2e91880fa
CRs-Fixed: 774533
2019-10-16 12:55:37 -07:00
Sourav Mohapatra
b8e24b5b44 qcacld-3.0: Move stack allocations to heap
In function hdd_association_completion_handler, there are couple of
large stack allocated arrays defined. This leads to issues of stack
overflow in cases when the stack across the call stack exceeds limit.

Dynamically allocate and deallocate the variables to ensure that they
take no space in the stack.

Change-Id: Ia077e44d7458f160581e3e75564a77d25d20311a
CRs-Fixed: 2515106
2019-10-16 12:55:37 -07:00
nshrivas
2568ba72f6 Release 5.2.0.152U
Release 5.2.0.152U

Change-Id: I76d11cdaed6d06f850e5f670ad2070fd435982b5
CRs-Fixed: 774533
2019-10-16 11:18:16 -07:00
Vevek Venkatesan
b8e96629e3 qcacld-3.0: fix compile error in cdp_fc_get_tx_resource API
cdp_fc_get_tx_resource API is being called without passing
pdev handle, which mis-matches the prototype. Adding a fix
to include right arguments to passed, also removing static
from function ol_txrx_get_vdev_by_peer_addr to expose scope
outside the file, to fix compile errors.

Change-Id: I8089aa5df3a127b85236e69f8a84de7ebd09ec3f
CRs-Fixed: 2545857
2019-10-16 11:18:15 -07:00
nshrivas
1fc3693c1e Release 5.2.0.152T
Release 5.2.0.152T

Change-Id: Ic31ec49d36f2c8f20cb383caba2aabd0a6863704
CRs-Fixed: 774533
2019-10-16 05:19:14 -07:00
Abhinav Kumar
0bd30005a1 qcacld-3.0: update max_num_probes as per INI for Roam Scans
Currently, Host does not update value of max_num_probes and
roam_scan_home_away_time as per default value of INI. This
could leads to only one probe request being sent out during
roam scans which might reduce probability of finding candidates
on a particular channel.

Fix is to update value of max_num_probes and
roam_scan_home_away_time as per INI.

Change-Id: I2aaa302cec840967443dfbfb7ea93f2b5f2380cb
CRs-Fixed: 2545070
2019-10-16 05:19:14 -07:00
Ajit Pal Singh
7fef54a8ac qcacld-3.0: usb: Make HTC_MAX_MSG_PER_BUNDLE_TX configurable
Make HTC_MAX_MSG_PER_BUNDLE_TX configurable through config files.
Also set HTC_MAX_MSG_PER_BUNDLE_TX to 48 for QCN7605 usb.

Change-Id: If6616251f536c35db087d5623a81c8a3f02da725
CRs-Fixed: 2544743
2019-10-16 05:19:06 -07:00
nshrivas
8002381c13 Release 5.2.0.152S
Release 5.2.0.152S

Change-Id: Ie37679b73d2f54d25e8b34d9e6632174000f4734
CRs-Fixed: 774533
2019-10-16 03:34:47 -07:00
Paul Zhang
d34b575fc5 qcacld-3.0: Add ini to disable aggressive EDCA config
Add action_oui ini gActionOUIDisableAggressiveEDCA to identify peers for
which aggressive EDCA configuration causes some IOT issues.

Change-Id: Ifea0c224cef2378727c9f78d8b571ea9c57bb662
CRs-Fixed: 2507191
2019-10-15 23:17:55 -07:00
Will Huang
4b097f5add qcacld-3.0: Replace channel number by channel frequency
To support 6Ghz channel, update channel number of struct
sap_StartBssCompleteEvent_s, hdd_ap_ctx and sap_ch_selected_s.

Change-Id: I19e6d7d03072135abed25e077e8573b5326ddba8
CRs-Fixed: 2519308
2019-10-16 10:07:17 +08:00
nshrivas
34eadc61ed Release 5.2.0.152R
Release 5.2.0.152R

Change-Id: I0294bd415260b56bc8937ded1123fce8f7f20dab
CRs-Fixed: 774533
2019-10-15 09:31:29 -07:00
Chaoli Zhou
98d1b3ead1 qcacld-3.0: Fix ROME SAP connection failure issue
For ROME SAP connection phase, we should post the
eWNI_SME_ASSOC_IND_UPPER_LAYER to the queue after
finish sending out the association response frame
for other thread to handle it, otherwise using sme
callback handler in the irq thread will make it has
QDF ASSERT issue in the qdf_mutex_acquire. And the
call sequence that cause the assert like this:
__do_softirq -> ce_engine_service_reg ->
htc_rx_completion_handler -> htt_t2h_msg_handler
-> ol_tx_single_completion_handler ->
ol_tx_desc_frame_free_nonstd ->
tgt_mgmt_txrx_tx_completion_handler ->
lim_assoc_rsp_tx_complete -> sme_process_msg ->
qdf_mutex_acquire.
Meanwhile, lim_assoc_ind will be free in the
lim_assoc_rsp_tx_complete, but it still need to
be used for sme_assoc_ind->assocReqPtr in the
lim_fill_sme_assoc_ind_params, which cause the
assoc req pass to hostapd should be NULL, fix
such issue.

Change-Id: I390224ba64ea6cd963630de5b360e7b5e74a4d10
CRs-Fixed: 2542880
2019-10-15 09:31:29 -07:00
nshrivas
c0ddbee65a Release 5.2.0.152Q
Release 5.2.0.152Q

Change-Id: I90ba19f25d1e1c1db36b53250a26989b16fca2a7
CRs-Fixed: 774533
2019-10-15 08:10:09 -07:00
Liangwei Dong
8ffc0cc3ec qcacld-3.0: Use wlan_reg_set_channel_params_for_freq for SAP
Use wlan_reg_set_channel_params_for_freq to update SAP channel
parameters. The "freq" version API can handle 6GHz channel properly.

Change-Id: I519de47d4ec1fa1351b120f2faa9f23de1064493
CRs-Fixed: 2536568
2019-10-15 08:10:08 -07:00
nshrivas
a22d72328a Release 5.2.0.152P
Release 5.2.0.152P

Change-Id: I708749327d40a530ac6862b3c7145a7d13937703
CRs-Fixed: 774533
2019-10-15 06:44:48 -07:00
gaurank kathpalia
c0d0841183 qcacld-3.0: Normalize the channel weights according to ini
Normalize the weights of the frequencies for ACS scan
if the user has changed them in the ini.
This is done as legacy devices wont be able to scan
the newly added 6ghz frequencies, and thus wont
be able to associate with the SAP if it starts
on 6ghz channels.

Change-Id: I2dd2f706c248f5339bde06963540d0874d08b847
CRs-Fixed: 2543007
2019-10-15 06:44:48 -07:00
Abhishek Singh
41776ce6b4 qcacld-3.0: Add vdev info in connect and disconnect info logs
Connect and disconnect info logs doesn't have vdev related info
and thus it become difficult to know for which interface the
req is received from logs in STA+STA case.

Change-Id: I8a8e83e1ee82614c06d736542e9be5f93308a6a1
CRs-Fixed: 2545444
2019-10-15 06:44:44 -07:00
nshrivas
b1344d13a8 Release 5.2.0.152O
Release 5.2.0.152O

Change-Id: If29c9859562979b3770bee5b42dc93482a65397e
CRs-Fixed: 774533
2019-10-15 05:16:26 -07:00
hqu
37c8b81fc3 qcacld-3.0: Add 11ax mode to non legacy phymode
Driver will set 11ax mode to legacy phymode currently, so it
will report no HT capability to hostapd, it's wrong.

11ax mode can support HT capability, fix is to set 11ax phymode
to non legacy.

Change-Id: Id8dce7eba9f5d986c57242242a7376d19e98eb3f
CRs-Fixed: 2503202
2019-10-15 05:16:25 -07:00
Abhishek Ambure
6a2773e4a4 qcacld-3.0: Replace WLAN_PHY_MODE with enum wlan_phymode
enum wlan_phymode is the enum to store the phymode in host
and thus replace WLAN_PHY_MODE with enum wlan_phymode
and add the corresponding change in the code to use
enum wlan_phymode.

Change-Id: I6c7990255f193eb3afdeeb278d3cc159ef8503b1
CRs-Fixed: 2544822
2019-10-15 05:16:19 -07:00
Lin Bai
7c3d0c45db qcacld-3.0: Fix CFG_RX_MODE_DEFAULT redefined error
SDX55 defined both MDM_PLATFORM and FEATURE_WLAN_DP_RX_THREADS,
and this is causing redefined issue.

Change-Id: I1427be477dd3832b98332c9edaa4063b8c573ae4
CRs-Fixed: 2542264
2019-10-15 05:16:12 -07:00
nshrivas
32fd4e8667 Release 5.2.0.152N
Release 5.2.0.152N

Change-Id: Ie1ceee72bbd8ffeb332bfb49728157d2dc8c3c9c
CRs-Fixed: 774533
2019-10-15 02:30:09 -07:00
Mohit Khanna
58a898ba9e qcacld-3.0: Use pm_qos only at high bandwidth
Currently we use PM qos apis to set masks and latency values at
PLD_BUS_WIDTH_LOW throughput level. As per experiments and power
measurements, this can also be done at the PLD_BUS_WIDTH_MEDIUM level
without any throughput impact and can help CPU enter C4 states at this
level.

Hence, donot use pm-qos APIs at less than high throughput levels.

Change-Id: I8bebb3b593b9d26aa6764b16b218814979bcd322
CRs-Fixed: 2507386
2019-10-15 02:30:09 -07:00
Arun Kumar Khandavalli
378b7ee6a4 qcacld-3.0: Remove block/unblock shutdown cb
Modem block/unblock shutdown callbacks are added to synchronize
modem shutdown when the driver is in deinit sequence.

With new changes everything is synchronized via the platform driver,
So remove the the block/unblock shutdown callback's.

Change-Id: If66eed5b51bbce64f024edf49e37a21b222a6a4c
CRs-Fixed: 2489733
2019-10-15 02:30:04 -07:00
nshrivas
541afcdd7c Release 5.2.0.152M
Release 5.2.0.152M

Change-Id: I324a130f4712663dfbd03ce3fc7ffd66e745c291
CRs-Fixed: 774533
2019-10-15 00:49:06 -07:00
Liangwei Dong
1f41f4f984 qcacld-3.0: Extract and add Advertisement Protocol IE
Extract and add Advertisement Protocol IE from hostapd.
MBO AP needs to report the ANQP supported in Advertisement
Protocol IE.

Change-Id: I5d7bb650de7626f568c1868775a665eff2305647
CRs-Fixed: 2530870
2019-10-15 00:49:06 -07:00
Sourav Mohapatra
c320ada27c qcacld-3.0: Move cache sta info to hash based
Currently in hdd_adapter, the variable cache_sta_info is an array of
hdd_station_info structured indexed by the sta_id. As sta_id is no
longer used, this array based implementation becomes unnecessary.

Move the sta_info implementation to a hash table implementation.

Change-Id: Iac11ecd2ae4a454649235cf8763e9a5f80e7eb38
CRs-Fixed: 2515316
2019-10-15 00:48:59 -07:00
Sourav Mohapatra
43e6dea453 qcacld-3.0: Move sta_info from array based to hash based
Currently in hdd_adapter, the variable sta_info is an array of
hdd_station_info structured indexed by the sta_id. As sta_id is no
longer used this array based implementation becomes unnecessary.

Move the sta_info implementation to a hash table implementation.

Change-Id: I7d6fe04b7e0ab22615d431de9a10a4ad38ed65ba
CRs-Fixed: 2514280
2019-10-15 00:48:54 -07:00
nshrivas
c65a60b93b Release 5.2.0.152L
Release 5.2.0.152L

Change-Id: I969c7df7d0ece78a92a736733083221c528739ef
CRs-Fixed: 774533
2019-10-14 23:04:57 -07:00
Jianmin Zhu
d17e66163f qcacld-3.0: Enable roaming type by platform to save memory
On HST, only enable LFR3
On Rome, only enable LFR2
This change is for auto platforms

Change-Id: I67bd5877060621e756668e925031fd134bc1a0c2
CRs-Fixed: 2544840
2019-10-14 23:04:57 -07:00
nshrivas
181ea3a9ed Release 5.2.0.152K
Release 5.2.0.152K

Change-Id: Idf145e2792f7f1aba2436eb8bdea6c69cb62df4c
CRs-Fixed: 774533
2019-10-14 19:12:14 -07:00
Bala Venkatesh
805a4a6f02 qcacld-3.0: Return success status for stop_ap
After SSR the vdev id in P2P GO adapter can become invalid.
So return success status in stop_ap to kernel for proper
cleanup.

Change-Id: I20aa0873e6aa199749c1cbabd098a581500bebce
CRs-Fixed: 2527535
2019-10-14 19:12:14 -07:00
nshrivas
d839865be0 Release 5.2.0.152J
Release 5.2.0.152J

Change-Id: Iba8a356afec9924169a7d5f74e101037de2c6880
CRs-Fixed: 774533
2019-10-14 17:44:49 -07:00