Commit Graph

19572 Commits

Author SHA1 Message Date
Bapiraju Alla
8cce2a2f7f qcacld-3.0: Add a sysfs replacement for range_ext
As part of WEXT replacement, replace range_ext with a sysfs file.

This feature can be controlled using configuration flag
CONFIG_WLAN_SET_RANGE_EXT

file path: /sys/class/net/wlanxx/range_ext
	where wlanxx is adapter name

example command: echo 1 > /sys/class/net/wlan1/range_ext

Change-Id: I389da429e1a0cd3a2ed1efede6cb958628eb7e6e
CRs-Fixed: 2689879
2020-05-22 13:53:46 -07:00
Min Liu
f42053713b qcacld-3.0: Add a sysfs replacement for get_gtxBWMask
file path: /sys/class/net/wlanxx/gtx_bw_mask
example: cat gtx_bw_mask

Change-Id: Ifbaa43b9889c37344bf39c6afe6e5c2536b123da
CRs-Fixed: 2692000
2020-05-22 13:53:43 -07:00
sheenam monga
31d139ec0a qcacld-3.0: Do not send VDEV_INSTALL_KEY to fw if SAP/P2PGO is restarting
Issue: Host is sending VDEV_INSTALL_KEY command without validating vdev
state. If there is channel change request, in function lim_change_channel
on WLAN_VDEV_SM_EV_CSA_COMPLETE, WLAN_VDEV_SM_EV_RESTART_REQ i.e vdev
restart request is triggred to fw and if there is any ongoing sta
connection parallely, then it may send vdev install without validating vdev
state. If firmware receives VDEV_INSTALL_KEY, it stops critical channel
request. Firmware sends VDEV_START_RESPONSE/VDEV_RESTART_RESPONSE once it
gets channel grant. If host sends VDEV_INSTALL_KEY to fw before it gets
channel grant then fw stops channel request and does not send
VDEV_RESTART_RESPONSE.

Fix: Valdiate vdev state before sending VDEV_INSTALL_KEY command.
In function wlan_hdd_add_key_sap validate the state of vdev and send
command only if vdev is in between restarting state.

Change-Id: I427ab9bfab499818290dc36b6b4b3a4974b7d3a2
CRs-Fixed: 2605369
2020-05-22 13:53:39 -07:00
nshrivas
427f173fea Release 5.2.0.187I
Release 5.2.0.187I

Change-Id: I7737d3bae2a5dd3370a85136f7456ef9ee22d098
CRs-Fixed: 774533
2020-05-22 12:27:47 -07:00
Sandeep Puligilla
e9e0f6d6de qcacld-3.0: Fix SME global mutex deadlock
hdd_bus_bw_work_handler API is stuck waiting on mutex
sme_global_lock acquired by scheduler thread.

WIFI logger start request API doesn't need to acquire
sme global lock because the request is posted to scheudler
thread and the request is processed in schduler thread context.

Change-Id: I34522abdc54d1a7d6b5acb546179194b4ee869d8
CRs-Fixed: 2690483
2020-05-22 12:27:47 -07:00
nshrivas
6d7b3a1ce5 Release 5.2.0.187H
Release 5.2.0.187H

Change-Id: If0598af7b9fb267eec687caa0efc810cab5215a3
CRs-Fixed: 774533
2020-05-22 04:36:31 -07:00
Bapiraju Alla
920ca1e805 qcacld-3.0: Remove unused wowlan INIs
Remove wowlan_deauth_enable and wowlan_disassoc_enable INI params as
these are unused

Change-Id: I90d10995365771359f1bcd029b9193437ad67a18
CRs-Fixed: 2678156
2020-05-22 04:36:31 -07:00
nshrivas
184b0052ea Release 5.2.0.187G
Release 5.2.0.187G

Change-Id: I565dc2a8b1ee80e963d66e476e875519c0b1877a
CRs-Fixed: 774533
2020-05-21 23:52:15 -07:00
Mahesh Kumar Kalikot Veetil
dada577f90 qcacld-3.0: Include config file only after override
Include defconfig profile only after processing WLAN_CFG_OVERRIDE.

Change-Id: I11164995061ee057dfcb3abaef2af2f2d33bfd23
CRs-Fixed: 2661823
2020-05-21 23:52:15 -07:00
Bapiraju Alla
2b88c22206 qcacld-3.0: Remove get_sta_info sysfs support for sta mode
get_sta_info sysfs interface is required only for SAP mode.
Remove interface creation and deletion in sta mode.

Change-Id: I4ab2beb9200d3834f9c37600ed7c5960f21c9700
CRs-Fixed: 2686964
2020-05-21 23:52:11 -07:00
nshrivas
cb484972f1 Release 5.2.0.187F
Release 5.2.0.187F

Change-Id: I92d4c2775a0a13c2fcb7aa8ef704509d3d58795d
CRs-Fixed: 774533
2020-05-21 20:34:44 -07:00
Lin Bai
2d1f2a224b qcacld-3.0: Dump PAGE_FAULT event buffer
On non-DRV platform, host will be waked when page fault occurs
in firmware side.
Need to dump event buffer which contains more debug info regarding
current page fault.

Change-Id: I46d724c58000b3faafc0f5eead550acb37eafe3a
CRs-Fixed: 2690966
2020-05-21 20:34:44 -07:00
nshrivas
f9594f6eb8 Release 5.2.0.187E
Release 5.2.0.187E

Change-Id: Ib6eea5c56641e6afe854537fd386ae640a9b0750
CRs-Fixed: 774533
2020-05-21 17:50:29 -07:00
Min Liu
c9112061fb qcacld-3.0: Add sysfs entry for enablertscts
Add the sysfs entry for enablertscts.
Previously these commands would be queried via iwpriv
--> iwpriv wlan0 enablertscts [0/1/2]
it is now changed to support via sysfs:
--> echo [0/1/2] > /sys/class/net/wlanxx/rts_cts

Change-Id: I9df4e0c678cc9221b3cc95c4d2058a4516438bc3
CRs-Fixed: 2689897
2020-05-21 17:50:28 -07:00
Min Liu
2e78a9226a qcacld-3.0: Add sysfs entry for enable_dcm and get_dcm
Add the sysfs entry for enable_dcm and get_dcm.
Previously these commands would be queried via iwpriv
--> iwpriv wlan0 enable_dcm [0/1]
--> iwpriv wlan0 get_dcm
it is now changed to support via sysfs:
--> echo [0/1] > /sys/class/net/wlanxx/dcm
--> cat /sys/class/net/wlanxx/dcm

Change-Id: I6f7d2e93c362b4d3018d7f5698dd1bba01123600
CRs-Fixed: 2685960
2020-05-21 17:50:25 -07:00
nshrivas
0a45a2d32e Release 5.2.0.187D
Release 5.2.0.187D

Change-Id: I8e9fa80d38b746497b0857059357be20aa25817a
CRs-Fixed: 774533
2020-05-21 16:25:24 -07:00
Bapiraju Alla
9b8a513717 qcacld-3.0: Fix return type of umac_stop_complete_cb
Return type of umac_stop_complete_cb is QDF_STATUS when
QDF_ENABLE_TRACING feature is disabled. It not matching with the same
API defined when QDF_ENABLE_TRACING is enabled.

To resolve this, update return type of umac_stop_complete_cb to void
when QDF_ENABLE_TRACING feature is disabled.

Change-Id: I59783520a7fdf8bef4424fed649898b5547da280
CRs-Fixed: 2686544
2020-05-21 16:25:24 -07:00
nshrivas
889835e9f1 Release 5.2.0.187C
Release 5.2.0.187C

Change-Id: I279be3ba4cce2b836b4e2478089450ed6acd3050
CRs-Fixed: 774533
2020-05-21 14:13:37 -07:00
Srinivas Dasari
9484e68614 qcacld-3.0: Don't limit the max NDPs with a peer in host
Currently, host allows maximum MAX_NDP_INSTANCES_PER_PEER(2) NDPs
per peer. Framework may need more NDPs with the same peer when
multiple NDP applications are running. Firmware shall allow/reject
an NDP based on the max number of NDP connections allowed per peer.
It's platform specific and firmware shall take care of it.
Remove the check in host which limits this.

Change-Id: Ic43f6e2588a8ed8ffd7c8bb87d9b5656352e5cf7
CRs-Fixed: 2684987
2020-05-21 14:13:36 -07:00
nshrivas
f6f9dd9a20 Release 5.2.0.187B
Release 5.2.0.187B

Change-Id: Ibfdd6dcf54cd1d4ac10985eda8617a8106056490
CRs-Fixed: 774533
2020-05-20 23:47:33 -07:00
Aditya Kodukula
9684d8033e qcacld-3.0: Add a sysfs replacement for gtxBWMask
As part of WEXT replacement, replace gtx_bw_mask with a sysfs file.

file path: /sys/class/net/wlanxx/gtx_bw_mask
        wlanxx is adapter name

example: echo 1 > gtx_bw_mask

Change-Id: I40c0f611ca221c91c59d9a3f60927f841385c469
CRs-Fixed: 2686762
2020-05-20 23:47:33 -07:00
nshrivas
c1e2d8d463 Release 5.2.0.187A
Release 5.2.0.187A

Change-Id: I8a47d0578ed39ef894b8121dfc520820e76ad91d
CRs-Fixed: 774533
2020-05-20 22:11:20 -07:00
Aditya Kodukula
5bb4215e50 qcacld-3.0: Add a sysfs replacement for txrx_fw_st_rst
As part of WEXT replacement, replace txrx_fw_st_rst with a sysfs file.

file path: /sys/class/net/wlanxx/txrx_fw_st_rst
        wlanxx is adapter name

example: echo 1 > txrx_fw_st_rst

Change-Id: I654ea8b66e7067f0e1d23ff053fa4b8d163d878c
CRs-Fixed: 2686665
2020-05-20 22:11:20 -07:00
Aditya Kodukula
029a02db1a qcacld-3.0: Add a sysfs replacement for setwlandbg
As part of WEXT replacement, replace setwlandbg with a sysfs file.

file path: /sys/kernel/wifi/set_wlan_dbg

example: echo 1 1 1 > /sys/kernel/wifi/set_wlan_dbg

Change-Id: I886bcd0ed89460e20db1ea809fa48e3a279bb39b
CRs-Fixed: 2686081
2020-05-20 22:11:16 -07:00
Aditya Kodukula
f527f9aeb6 qcacld-3.0: Add a sysfs replacement for getStats
As part of WEXT replacement, replace getStats with a sysfs file.

file path: /sys/class/net/wlanxx/get_stats
	where wlanxx is adapter name

example: cat /sys/class/net/wlanxx/get_stats

Change-Id: I762f61304407876b61b6970688e3715612c60d35
CRs-Fixed: 2685602
2020-05-20 22:11:12 -07:00
Aditya Kodukula
e514533315 qcacld-3.0: Add a sysfs replacement for get_tx_stbc
As part of WEXT replacement, replace get_tx_stbc with a sysfs file.

file path: /sys/class/net/wlanxx/get_tx_stbc
	where wlanxx is adapter name

example: cat /sys/class/net/wlanxx/get_tx_stbc

Change-Id: I3024a574c7aa35398bd4c8ee30f8235ef2fe3128
CRs-Fixed: 2682374
2020-05-20 22:11:08 -07:00
nshrivas
561afc739c Release 5.2.0.187
Release 5.2.0.187

Change-Id: Ia960ea8031693b88d533a6cea87db5fb538beb49
CRs-Fixed: 774533
2020-05-20 15:20:01 -07:00
Manjunathappa Prakash
9e1e95c70f qcacld-3.0: Get back the WAR to confirm WBM IDLE ring LSB write
On Lahaina platform it is seen that WBM IDLE ring init is failing,
Write to WBM_IDLE link ring LSB write is failing.
Add temporary WAR to do back to back write of WBM IDLE link ring
LSB address config register.

Change-Id: Iccaf222038fb571ed518a90d7e7ac4e655ba5010
CRs-Fixed: 2690491
2020-05-20 15:20:00 -07:00
nshrivas
7f8418dad2 Release 5.2.0.186Z
Release 5.2.0.186Z

Change-Id: Icbc94f63422220961e32586a6589ffa17a2d0a2a
CRs-Fixed: 774533
2020-05-20 07:43:41 -07:00
Abhinav Kumar
3a4f8744b6 qcacld-3.0: Disable VHT in 2.4ghz HE mode if vendor vht INI is 0
Ini "gEnableVhtFor24GHzBand" is 0 to disable vendor VHT in HE
mode.

Fix is to disable VHT mode if HE mode in 2.4Ghz if
gEnableVhtFor24GHzBand is set to 0.

Change-Id: Ia4ae31440b5c018e58f9a03eb1e1c85832330431
CRs-Fixed: 2676984
2020-05-20 07:43:41 -07:00
Alan Chen
18f31f1c48 qcacld-3.0: Fix LL Timeout over Debugfs
Clear the stats bitmap properly such that LL stats is complete.

Change-Id: I1238c438e9d57000006ae46474569c4f2cf60e8f
CRs-Fixed: 2690186
2020-05-20 07:43:37 -07:00
nshrivas
75f27ace34 Release 5.2.0.186Y
Release 5.2.0.186Y

Change-Id: I2e8d290fa7147b7d3c0bc6759dd3c3961d53e743
CRs-Fixed: 774533
2020-05-20 06:12:26 -07:00
Alan Chen
b04e0e3c61 qcacld-3.0: Add a sysfs replacement for motion detection commands
As part of WEXT replacement, replace mt_bl_config, mt_bl_start,
mt_config, mt_start with a sysfs file.

file path: /sys/class/net/wlanxx/mt_bl_config
file path: /sys/class/net/wlanxx/mt_bl_start
file path: /sys/class/net/wlanxx/mt_config
file path: /sys/class/net/wlanxx/mt_start
        wlanxx is adapter name

example: echo 1 1 1 1 > mt_bl_config
example: echo 1 > mt_bl_start
example: echo 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > mt_config
example: echo 1 > mt_start

Change-Id: Ife5df2cfae7c9489d6e9d6c2746a1e7367ed5012
CRs-Fixed: 2686772
2020-05-20 06:12:26 -07:00
Alan Chen
3290e55248 qcacld-3.0: Add a sysfs replacement for thermal_cfg
As part of WEXT replacement, replace thermal_cfg with a sysfs file.

file path: /sys/kernel/wifi/thermal_cfg

example: echo 1 1 1 1 1 2 1 > thermal_cfg

Change-Id: I4dfb9f661154f001150a205ca2ba4d08c3da8361
CRs-Fixed: 2685723
2020-05-20 06:12:23 -07:00
Alan Chen
bb1227276b qcacld-3.0: Add a sysfs replacement for get_temp
As part of WEXT replacement, replace get_temp with a sysfs file.

file path: /sys/class/net/wlanxx/get_temp
	where wlanxx is adapter name

example: cat /sys/class/net/wlanxx/get_temp

Change-Id: I6e530562347c936fb980f4eed4c3a55cb9804bdd
CRs-Fixed: 2684669
2020-05-20 06:12:19 -07:00
nshrivas
f516576fcf Release 5.2.0.186X
Release 5.2.0.186X

Change-Id: Id26d0b38e2a6e5c54c743b00ae8bc251e20de043
CRs-Fixed: 774533
2020-05-20 04:51:34 -07:00
Will Huang
e5e99d45aa qcacld-3.0: Enable 11d feature for AUTO
To enable 11d feature, CONFIG_TARGET_11D_SCAN should be configured
independent of host 11d scan or target 11d scan.

Change-Id: Ieb5b3ff4217682fcc887aaaa1a22ec23cee33109
CRs-Fixed: 2679788
2020-05-20 04:51:34 -07:00
nshrivas
6f002b687c Release 5.2.0.186W
Release 5.2.0.186W

Change-Id: I26d07c1866325eaf22476e5fab87efaf42f98a3e
CRs-Fixed: 774533
2020-05-20 03:31:18 -07:00
Liangwei Dong
1e9d981107 qcacld-3.0: Sync csr_roamProfile.ch_params with sap ctx
The mhz_freq_seg0 & mhz_freq_seg1 fields are not assigned
with values from sap ctx.
Fix by copy the whole the struct of "ch_params" to
csr_roamProfile.ch_params instead of one by one.

Change-Id: I92d7bc6ddeed1038597c7639d41fca059bf13457
CRs-Fixed: 2688693
2020-05-20 10:07:33 +08:00
nshrivas
2879bf9bf9 Release 5.2.0.186V
Release 5.2.0.186V

Change-Id: I62adf83a09b3c65304e3f8c01b7e6f96b3657070
CRs-Fixed: 774533
2020-05-19 18:00:55 -07:00
gaurank kathpalia
6000545045 qcacld-3.0: Fix RSN parsing issues in lim_check_rsn_ie
In lim_check_rsn_ie, driver first upack the RSN IE and then do pack,
During unpack RSN_Cap_present is set to 0, in case pmkid and grp
mgmt cipher is not present. Also if pmkid is not present during pack
mgmt grp cipher is not added.

This lead to RSN caps not filled and thus PMF capability
is not determined leading to PMF cert failures.

So do not reset rsn caps and consider grp mgmt ciper.
Also in lim_check_rsn_ie use the preexisting RSN IE instead
of creating the IEs again.

Change-Id: Icc360b2eed0197fcf1ae27a0ff6ae9879b45cf2b
CRs-Fixed: 2690029
2020-05-19 18:00:54 -07:00
nshrivas
7074930c61 Release 5.2.0.186U
Release 5.2.0.186U

Change-Id: I65090462389a80a01f74d48499e8db8c356524c8
CRs-Fixed: 774533
2020-05-19 16:08:21 -07:00
Srinivas Dasari
ad5a78ee9e qcacld-3.0: Send disconnect reason code as 0 for beacon miss
Currently, host driver sends disconnect reason code as
WLAN_REASON_UNSPECIFIED(1) when the station disconnects due to
continuous beacon miss and corresponding vendor specific reason
code is also sent to userspace. This change is introduced with
the commit I99bf4573b59dc810e0a1529fcd48061d10acae4e to
provide vendor specific reason codes for all internal
disconnections.
Driver used to send reason code as 0 for beacon miss before
this change. Few applications might still expect the same
reason code(0) and current behavior causes backward compatibility
issues. So, retain the same reason code 0 for beacon miss failure.

Change-Id: I82f215ba15ff6e215cb14ac08933e1491371dfde
CRs-Fixed: 2689257
2020-05-19 16:08:20 -07:00
nshrivas
060bbe47dd Release 5.2.0.186T
Release 5.2.0.186T

Change-Id: I6712755d83e98c0a67ed3f7e534512ef976acf40
CRs-Fixed: 774533
2020-05-19 14:47:09 -07:00
Rakesh Pillai
523a702050 qcacld-3.0: Remove bus bw vote when bus bw timer is stopped
Currently the driver votes for IDLE case when no
interface is associated. If the bus bandwidth timer
is stopped when there is no interface, we are not reducing
our votes, thereby causing higher power usage.

Remove our voting for bus bandwidth when the bus
bandwidth timer is stopped.
Also in the wlan resume case, vote for MEDIUM bus
bandwidth only if any interface is associated, else
vote for NONE.

Change-Id: I6cbe7f32036219b3b8914fb096562f44559931ce
CRs-Fixed: 2688853
2020-05-19 14:47:09 -07:00
Utkarsh Bhatnagar
17b2fc57d7 qcacld-3.0: Remove unused CFG CFG_RMC_ACTION_PERIOD_FREQUENCY
RMC is IBSS specific and CFG_RMC_ACTION_PERIOD_FREQUENCY is not used
now so remove the same

Change-Id: Icafff4bd7eb508d92c383861300146e3a0f2def7
CRs-Fixed: 2689882
2020-05-19 14:47:05 -07:00
nshrivas
2b7fc77cb9 Release 5.2.0.186S
Release 5.2.0.186S

Change-Id: I6b7c04c817340e02befb46fdb6db90373683cf47
CRs-Fixed: 774533
2020-05-19 08:40:58 -07:00
Srikanth Marepalli
ec2675cd04 qcacld-3.0: Add support for WPA3 SuiteB roaming
This commit enables support for SuiteB roaming for SHA384.
Based on the WPA3 SuiteB roam service capability advertisement
received from Firmware, we enable the support in Host.

Change-Id: Iab4e6bfc9c8ba7d604c2720c8cb848fce40dd6b4
CRs-Fixed: 2685975
2020-05-19 08:40:58 -07:00
Ben Wang
308c352957 qcacld-3.0: Add idle shutdown for virtual interface stop
Because FW don't support idle pdev suspend, and when all interface down
host will not send wow enable command because wakeup is not expected.
The idle shutdown precedure already exist for station mode, apply it to
virtual interface as well.Otherwise, it will cause wlan suspend failed

Change-Id: I5bde36298b1484b09b1bb52cf79841f99d5324be
CRs-Fixed: 2668600
2020-05-19 08:40:53 -07:00
nshrivas
c110038b83 Release 5.2.0.186R
Release 5.2.0.186R

Change-Id: I54d555824bd0b597e0d1494dcf0da34ec16d549b
CRs-Fixed: 774533
2020-05-19 07:22:08 -07:00