Commit Graph

15652 Commits

Author SHA1 Message Date
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
Jeff Johnson
4ee14f44f6 qcacld-3.0: Replace typedef tSirWifiChannelStats
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 tSirWifiChannelStats 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.

Change-Id: I45562da6441fec1af35483d390057a2693e5d02a
CRs-Fixed: 2427173
2019-04-03 03:38:28 -07:00
Jeff Johnson
b67be24d52 qcacld-3.0: Replace typedef tSirWifiRate
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 tSirWifiRate 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 rateMcsIdx member to make it compliant.

Change-Id: I719c9c563f5b382b0734be086bee4e5e89fe85aa
CRs-Fixed: 2427172
2019-04-03 03:38:23 -07:00
Jeff Johnson
17ba70aefb qcacld-3.0: Replace typedef tSirWifiChannelInfo
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 tSirWifiChannelInfo 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.

Change-Id: I2c0647cc48d0ed805974dd9ea399ca742aabc17f
CRs-Fixed: 2427171
2019-04-03 03:38:18 -07:00
Jeff Johnson
5d1e4b8a84 qcacld-3.0: Replace typedef tSirWifiChannel
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 tSirWifiChannel typedef does
not meet any of those criteria, so replace it with uint32_t.

Change-Id: I775fc6b79ce6c4ef7dc8b94be127127c51e0d600
CRs-Fixed: 2427170
2019-04-03 03:38:13 -07:00
Jeff Johnson
1043f52beb qcacld-3.0: Replace typedef tSirWifiChannelWidth
The enumerations provided by typedef tSirWifiChannelWidth duplicate
the ones provided by common enum phy_ch_width, so utilize the common
definition.

Change-Id: Ie2573858a010a97cee2903d7d029671bb7a60219
CRs-Fixed: 2427169
2019-04-03 03:38:10 -07:00
Jeff Johnson
fcb078d1e3 qcacld-3.0: Replace typedef tSirWifiPeerStat
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 tSirWifiPeerStat 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.

Change-Id: I337e2329d544e0b6daf6650f826e736f2492ef30
CRs-Fixed: 2427168
2019-04-03 03:38:06 -07:00
Jeff Johnson
1049503cbf qcacld-3.0: Replace typedef tSirWifiPeerInfo
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 tSirWifiPeerInfo 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.

Change-Id: I1b4c872efc895e048184ea3e589dfd8ad3efab15
CRs-Fixed: 2427167
2019-04-03 03:38:02 -07:00
Jeff Johnson
d3b3b11104 qcacld-3.0: Replace typedef tSirWifiRateStat
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 tSirWifiRateStat 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.

Change-Id: Iff54772fda084fee932f6669ab937e136ab2cf66
CRs-Fixed: 2427166
2019-04-03 03:37:57 -07:00
sheenam monga
8fec61d333 qcacld-3.0: Added roam_reason in csr_roam_info
Currently, there is no information for roam reason
in csr

Fix,check 4 LSB of roam_synch_data for roam reason
and send roam_reason to hdd

Change-Id: I4306339eb69db3bfc05fac79b13e3693582ff05d
CRs-Fixed: 2425911
2019-04-03 03:37:52 -07:00
nshrivas
600aaf7a1d Release 5.2.0.129C
Release 5.2.0.129C

Change-Id: I7766dba140a1f58adb9ed68b79c0ad3e4cc9acec
CRs-Fixed: 774533
2019-04-02 15:15:50 -07:00
Manjunathappa Prakash
78b6a88213 qcacld-3.0: Do not requeue back GRO_DROPed skb
napi_gro_receive packet frees skb on success or drop(GRO_DROP).
Current code is trying to handle failure case by delivering skb
via non napi_gro_receive API. In case the packet is dropped by GRO,
this leads to access of freed skb.
Donot requeue GRO dropped skb to network stack.

Change-Id: Ibfbb8d4ac7f77cf3547da8c2ebc4f3fea8d226d0
CRs-Fixed: 2409252
2019-04-02 15:15:49 -07:00
Bala Venkatesh
e45f03d6c2 qcacld-3.0: Return proper status to HDD
Return correct status of fw_test_cmd to HDD

Change-Id: Ic43a44825caf9cd5ce4f58ba702f4c25ccde709b
CRs-Fixed: 2424294
2019-04-02 15:15:45 -07:00
gaurank kathpalia
6d25c97f3f qcacld-3.0: Clear Key information from driver memory after disconnect
Currently the key information i.e the key, and the number of keys
are not getting cleared on wifi link disconnection from wifi
driver memory, which can lead to information disclosure.

Clear the key information i.e the number of keys and
keys from wifi driver memory to avoid any potential information
disclore after wifi is turned off.

Change-Id: I45306e0d648c500f63f723b4e3ccb6098c055158
CRs-Fixed: 2415413
2019-04-02 15:15:41 -07:00
nshrivas
c57f867311 Release 5.2.0.129B
Release 5.2.0.129B

Change-Id: Iab92f896212ae48837fbc631c341b8c97d8f6952
CRs-Fixed: 774533
2019-04-02 11:17:25 -07:00
Mohit Khanna
cf139fe9b6 qcacld-3.0: Enable RX_DESC_DEBUG_CHECK debug flag
Enable the flag in kbuild file for SLUB builds.

Change-Id: I4fbf3b775258567d7f9651b52b9f61401fb3a270
CRs-Fixed: 2390775
2019-04-02 11:17:24 -07:00
Will Huang
cc571d4290 qcacld-3.0: Add missed checking in a loop function
The condition check of for loop in hdd_get_max_rate_legacy() was not
propagated properly, it was a dead loop. Add missed i checking.

Change-Id: I7daf623e3bb70f6a691fd62cfd4e737f7e54a791
CRs-Fixed: 2425605
2019-04-02 11:17:21 -07:00
Abhishek Singh
3bbf6cb77c qcacld-3.0: Fix wait timeout for existing channel change request
In case of STA+SAP, if STA connect to new channel, driver check
if SAP channel switch is required. Before this it wait if channel
switch is already in progress, if not it continue and check if
channel change is required. While waiting in case where event was
set and channel switch was not in progress, the even gets reset
after waiting.

So if event is not set again, i.e in case SAP channel change is not
required. Any subsequent wait on the event will result in timeout.

Also while changing channel this event is reset and then the
concurrency checks are made and if checks fails the channel change
may not happen leaving event in reset state.

So wait for event only if channel switch is already in progress.
Also reset the event once all concurrency checks have passed and
channel change is started.

Change-Id: Iffcd8b2bf9dc7cbbd7d939983601cc395ef4c515
CRs-Fixed: 2425145
2019-04-02 11:17:16 -07:00
nshrivas
a35a609aba Release 5.2.0.129A
Release 5.2.0.129A

Change-Id: I306e63cced17c884fd139e0b2cb1e66b291b3782
CRs-Fixed: 774533
2019-04-01 09:24:50 -07:00
Visweswara Tanuku
b5a6124fde qcacld-3.0: Avoid timer leak when psoc idle timeout happens in HL
In HL when psoc idle timeout is triggered, timer leak is detected
and host triggers panic.

When driver is loaded, upon device probe tx flow control timer is
initialized. When there is no activity on interface psoc idle timeout
is triggered and later during hdd_wlan_stop_modules host triggers
panic since tx flow control timer still exists. tx flow control timer
is deregistered in hdd_stop_adapter function which is not executed
during hdd_wlan_stop_modules.

Move tx flow control timer registration from hdd_open_adapter to
hdd_start_adapter function to avoid timer leak and panic

Change-Id: Id3677d09441e23f1e9e36cdf77e956d6871c46ec
CRs-Fixed: 2415146
2019-04-01 09:24:49 -07:00
nshrivas
dae1dbd570 Release 5.2.0.129
Release 5.2.0.129

Change-Id: I3eb8ef74a60d25825c4e89d4e222daf7937a514a
CRs-Fixed: 774533
2019-04-01 07:48:50 -07:00
Ashish Kumar Dhanotiya
dd5f74c00b qcacld-3.0: Update set disable channel list command implementation
Currently driver disables channels received in
SET_DISABLE_CHANNEL_LIST command, only when sap is turned
on (on start bss). According to new requirement, channels
should be disabled as soon as the command is received.

To meet above expectation, update the set disable channel list
command functionality to disable the channels as soon as the
command is received.

CRs-fixed: 2424991
Change-Id: I596c21847e90efef9676f20df528aed77e927519
2019-04-01 07:48:50 -07:00
nshrivas
f6a4068389 Release 5.2.0.128Z
Release 5.2.0.128Z

Change-Id: Ifb860a9cf5d24f333776f3b2734d6d8df338d24a
CRs-Fixed: 774533
2019-04-01 04:48:25 -07:00
Madhvapathi Sriram
8b05665b74 qcacld-3.0: Check the netdev validity before deferencing it
If the netdevice registration fails, the netdevice is freed
by referencing the context in the adapter structure.
However, in some scenarios the registration failure can result
in the netdev ops uninit being called where the reference is
reset and hence invalid.

Fix this by saving the netdevice in a local variable

Change-Id: Id01bf5d3fe633432695520bda77697842ced9ff1
CRs-Fixed: 2423508
2019-04-01 04:48:24 -07:00
nshrivas
006f1ff230 Release 5.2.0.128Y
Release 5.2.0.128Y

Change-Id: I254dd51a9d1ae3adc37d4e05fdb004bc0b84272d
CRs-Fixed: 774533
2019-04-01 00:56:53 -07:00
Visweswara Tanuku
937444762e qcacld-3.0: Allow P2P-GO channel switch in response to ECSA Frame
FR29306 has requirement to receive ECSA action frame from P2P-GO

Change id Ie9ddbf10c13f62205fdd60c512a560b35c6610ba broke this

Allow P2P-GO channel switch in response to ECSA Frame

CRs-Fixed: 2424413
Change-Id: Id388b0b6a5610b41d4da0dcda98974d9d0495eb5
2019-04-01 00:56:52 -07:00
nshrivas
a4d23c48da Release 5.2.0.128X
Release 5.2.0.128X

Change-Id: I106d928b46b0b5011e3308f3177d3565fd9cdfbf
CRs-Fixed: 774533
2019-03-31 23:01:22 -07:00
Min Liu
b3b222af60 qcacld-3.0: Reject assoc req with PMF disabled from SAE STA
For WPA3 SAE test case 4.2.7, SAP should reject the association
request with PMF disabled from SAE STA.

Change-Id: Ie2298313ce5a7a363afdb4478f541cf2da612603
CRs-Fixed: 2387822
2019-03-31 23:01:21 -07:00
nshrivas
98e93b772c Release 5.2.0.128W
Release 5.2.0.128W

Change-Id: I52d29ddda09c1b737bbedcbb8bc36015cda41c67
CRs-Fixed: 774533
2019-03-31 20:56:53 -07:00
Qun Zhang
043635a34f qcacld-3.0: Update wiphy band info after FW ready event is received
The driver can be configured to support only 2.4 GHz operation
via INI setting "BandCapability=1". Currently, when the driver
is configured in this manner, the RF bands attribute in the
WPS IE in Probe Request frames incorrectly indicates the driver
can support both 2.4 GHz and 5 GHz operation. This is because
the logic used to configure the wiphy->bands occurs before the
INI file has been processed, and hence the BandCapability is
not properly applied. To address this issue relocate the logic
that updates the wiphy->bands until after the INI file has been
processed.

Wiphy supported band info is also dependent on FW capabilities,
so update wiphy band info after FW ready event is received.

Change-Id: Ic210cafd730f56feb9df06d8ad5fcd8cca8355fc
CRs-Fixed: 2377343
2019-03-31 20:56:52 -07:00
hangtian
c847946ced qcacld-3.0: Add qcs40x.snoc.perf_defconfig
Add qcs40x.snoc.perf_defconfig. Enable CONFIG_FEATURE_TSO_DEBUG by
default, avoid spinlock bad magic issue(without spin_lock_init() for
tso_stats_lock).

Change-Id: If2fb00bd2298aa6f43418b3e4694aa995887b4f3
CRs-Fixed: 2424181
2019-03-31 20:56:47 -07:00
nshrivas
2687b551f3 Release 5.2.0.128V
Release 5.2.0.128V

Change-Id: Iad93025c9136ad8511ca0d6693073eb75b6b38de
CRs-Fixed: 774533
2019-03-30 08:07:12 -07:00
Rakshith Suresh Patkar
388e745fb2 qcacld-3.0: Add support for DPT in IPA exception path
Currently, DPTRACE is not supported for IPA exception
path. So, in softAP Mode with IPA enabled, DPTRACE
RX logs are not seen.

Add support for DPTRACE in IPA exception path.

Change-Id: I551e7380a46004fcc8dcf5f8d30e4c0a700fa3bf
CRs-Fixed: 2425310
2019-03-30 08:07:11 -07:00
nshrivas
c27fa91ab5 Release 5.2.0.128U
Release 5.2.0.128U

Change-Id: I4459582fcbfef260b5e62dd366926034c1409e87
CRs-Fixed: 774533
2019-03-30 04:53:13 -07:00
jiad
bce4f0f520 qcacld-3.0: Enable SMMU S1 for sdxprairie
Enable ENABLE_SMMU_S1_TRANSLATION option for sdxprairie.

Change-Id: I3eedee61bce6fbe2442fd15b282c054b5dd935d2
CRs-Fixed: 2425028
2019-03-30 04:53:12 -07:00
nshrivas
b80a9a918f Release 5.2.0.128T
Release 5.2.0.128T

Change-Id: I12b868775f1e8dfc43aff76ab3b4553277c76e58
CRs-Fixed: 774533
2019-03-29 21:59:00 -07:00