Commit graph

6,355 commits

Author SHA1 Message Date
Jeff Johnson
1876762018 qcacld-3.0: Replace hdd_context_t in wlan_hdd_p2p.c
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 hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Ied864c85ff8143d44f0eb35e0f49166f88e578ba
CRs-Fixed: 2100172
2017-08-31 07:27:47 -07:00
snandini
65cee2c326 Release 5.2.0.40Q
Release 5.2.0.40Q

Change-Id: Ifb5d728647663b1e39515a5c19cafb7fb5e397a1
CRs-Fixed: 774533
2017-08-31 05:19:19 -07:00
Jeff Johnson
56acf4386f qcacld-3.0: Replace hdd_context_t in wlan_hdd_he.[ch]
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 hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Ib8b11a064c448c1f1995bf192c6a70f49391cbd5
CRs-Fixed: 2100194
2017-08-31 05:19:16 -07:00
snandini
2ba9669d0f Release 5.2.0.40P
Release 5.2.0.40P

Change-Id: I9e786b831662391432d3eb2e72f75e2a34cb4b78
CRs-Fixed: 774533
2017-08-31 04:20:47 -07:00
Jeff Johnson
c54bbf94d7 qcacld-3.0: Replace hdd_context_t in wlan_hdd_hostapd.[ch]
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 hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I78b16ac511713e20c5b4a7d53315149a80d72e13
CRs-Fixed: 2100192
2017-08-31 04:20:44 -07:00
snandini
9ebb5c5299 Release 5.2.0.40O
Release 5.2.0.40O

Change-Id: I4083ea378fd1b7ebb03b94911f1756dfd2490397
CRs-Fixed: 774533
2017-08-31 03:33:45 -07:00
Jeff Johnson
24d267efac qcacld-3.0: Replace hdd_context_t in wlan_hdd_scan.[ch]
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 hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Ic173dab22fa7279634e913a28530a5b405b0a775
CRs-Fixed: 2100166
2017-08-31 03:33:45 -07:00
Jeff Johnson
714fb034ea qcacld-3.0: Replace hdd_context_t in wlan_hdd_subnet_detect.c
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 hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I58246d49ae36d6555b21832d12c2ca6735c5a507
CRs-Fixed: 2100143
2017-08-31 03:33:42 -07:00
Jeff Johnson
9797fa1ae3 qcacld-3.0: Replace hdd_context_t in wlan_hdd_fips.c
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 hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I8a8189717acf389b326325c1edb64b7df904fa47
CRs-Fixed: 2100141
2017-08-31 03:33:40 -07:00
snandini
4e8c771f88 Release 5.2.0.40N
Release 5.2.0.40N

Change-Id: I8b6c18bdfaa6c99e8ae00c02de9062297e47325a
CRs-Fixed: 774533
2017-08-31 02:52:38 -07:00
Jeff Johnson
7819caa75b qcacld-3.0: Replace hdd_context_t in cds_api
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 hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I8404fa2fc32269a92522f6ae15f8d9d1a8aebf85
CRs-Fixed: 2100140
2017-08-31 02:52:38 -07:00
snandini
eb849af214 Release 5.2.0.40M
Release 5.2.0.40M

Change-Id: Iee331f77d7bb80277290a19e346f596b767e1b69
CRs-Fixed: 774533
2017-08-31 01:34:15 -07:00
Paul Zhang
fda3a59222 qcacld-3.0: Fix STA can't disconnect with AP issue
pe_roam_synch_callback creates new pe session and initializes
the varible bssIdx with add_bss_params->bssIdx which is not
initialized. When beacon miss event happens, it can't disconnect
with the AP because the session is not found for bssidx zero.

Change-Id: I44b79fe7ee0a8fc4ecc6f41e2574c203b0755827
CRs-Fixed: 2094326
2017-08-31 01:34:15 -07:00
snandini
a3988f76ce Release 5.2.0.40L
Release 5.2.0.40L

Change-Id: Idc7d2a00adb782bde533735cb739c7ab12caff4e
CRs-Fixed: 774533
2017-08-30 21:26:26 -07:00
Rajeev Kumar Sirasanagandla
248697d555 qcacld-3.0: Fix incorrect argument in SETROAMMODE IOCTL handler
qcacld-2.0 to qcacld-3.0 propagation

While processing SETROAMMODE IOCTL, invalid argument is passed to
kstrtou8() due to which error is returned for valid command.

To fix this, invoke kstrtou8 with base 10.

Change-Id: I78b10b6c13338c3afa420792e2ddbc7c945a7fec
CRs-Fixed: 2101398
2017-08-30 21:26:26 -07:00
wadesong
8332b59669 qcacld-3.0: Protect tx descritpor states during allocation
Tx descriptors' state info, such as vdev pointer, vdev ID and
ref_cnt, are protected by a spin lock during freeing, but not
protected by the same lock during allocation. Correct the
discrepancies to avoid a NULL pointer dereference issue

Change-Id: Ie0fb634a893a8d33888f7f1f6685a4fb7219e308
CRs-Fixed: 2091379
2017-08-30 21:26:23 -07:00
Hu Wang
c314884bcd qcacld-3.0: Don't set default key for WAPI network
Set default key is for WEP network, don't set it for WAPI network.

Change-Id: I6b94777a57a6978a7abc56750fd475aaff2c8c94
CRs-Fixed: 2063926
2017-08-30 21:26:22 -07:00
snandini
a8eba0cecf Release 5.2.0.40K
Release 5.2.0.40K

Change-Id: Ib56a8021f5cd952be90d9e2ce46304521cc8a6e1
CRs-Fixed: 774533
2017-08-30 20:21:35 -07:00
Rajeev Kumar
052d57c0aa qcacld-3.0: Rename hdd *_rate_limited logging APIs to *_ratelimited
Rename hdd *_rate_limited logging APIs to *_ratelimited.

Change-Id: I0b10b37ddf8602e82c06d1770ceee1b0e9df0797
CRs-Fixed: 2098817
2017-08-30 20:21:34 -07:00
Sridhar Selvaraj
0d5d2c745c qcacld-3.0: Add Support for FILS Association
Adds the following  support:
1) Add FILS IE's to assoc request.
2) AEAD encrypt/decrypt the assoc request/response frames for FILS
3) Process/Verify the Assoc response for the FILS params
4) Plumb the Auth keys to firmware after successful FILS assoc
5) Update the user space with Auth key details

Change-Id: I57f6319cecdf10e08047b510321b885c3cd711b5
CRs-Fixed: 2030038
2017-08-30 17:43:53 -07:00
snandini
7a412e492b Release 5.2.0.40J
Release 5.2.0.40J

Change-Id: Ie13b44d1a2e8f494901383ae7600b4f1ebdb5e5a
CRs-Fixed: 774533
2017-08-30 10:46:26 -07:00
Rajeev Kumar Sirasanagandla
5bacf7fcfe qcacld-3.0: Log rssi in wlan_hdd_get_rssi
qcacld-2.0 to qcacld-3.0 propagation

In the current code, there is no log of rssi value in wlan_hdd_get_rssi.

To fix this, add print for rssi.

Change-Id: I7db04c7defd26d2cd9792e96805ff524d88bb9b4
CRs-Fixed: 2045201
2017-08-30 10:46:21 -07:00
Ashish Kumar Dhanotiya
15a7db51d2 qcacld-3.0: Reject interface up request during removal of driver
During the driver unload driver de-registers the netdevices taking
hdd_init_deinit_lock and if any userspace entity trying issues the
interface taking the rtnl_lock resulting in the deadlock as one
thread is waiting for the rtnl_lock to be released taking the
hdd_init_deinit_lock and other thread is waiting for hdd_init_deinit_lock
taking the rtnl_lock. Since the driver is unloading reject the
interface up request before acquiring the hdd_init_deinit_lock.

To address this issue do not proceed with hdd_open if unload is in
progress.

CRs-Fixed: 2078720
Change-Id: Ie8c8bba8d142312d3504c40a839343e16fc3b31e
2017-08-30 10:46:18 -07:00
snandini
1b5db77b70 Release 5.2.0.40I
Release 5.2.0.40I

Change-Id: Idbbd63eb7415b80308287be2622c5b22cba6d294
CRs-Fixed: 774533
2017-08-30 10:46:12 -07:00
yeshwanth sriram guntuka
ca71d037a8 qcacld-3.0: Fix excessive logging
kmsg is flooded with excessive logs from lim_enable_11a_protection.

Fix is to change log level to debug.

Change-Id: I05d8def15660cc519c44870359ff6c337a44ed60
CRs-Fixed: 2072944
2017-08-30 10:46:08 -07:00
snandini
07e7182dfc Release 5.2.0.40H
Release 5.2.0.40H

Change-Id: I5d255fb2c0c79e718dad5017ee350590eab89be6
CRs-Fixed: 774533
2017-08-30 10:46:04 -07:00
Dustin Brown
8aef46daf6 qcacld-3.0: Fix compilation issue no member named ‘center_freq_seg2_idx’
Linux kernel 4.12 renamed center_freq_seg2idx to center_freq_seg1idx and
center_freq_seg1idx to center_freq_seg0idx. Add conditional compilation
to access the correct fields based on the kernel version.

Change-Id: Id8c20f9e47eecdbdf121c88cb5e017f662e2e15e
CRs-Fixed: 2091058
2017-08-30 10:46:00 -07:00
Dustin Brown
b3e0fbb304 qcacld-3.0: Fix csr_inside_api.h header guard
The header guard within csr_inside_api.h ends before the end of the
file. Move the end of the header guard to the end of the file.

Change-Id: I7c9e62b9eaee8815f6d1e496d88b6b79f489299b
CRs-Fixed: 2090171
2017-08-30 10:45:56 -07:00
snandini
30887fc15f Release 5.2.0.40G
Release 5.2.0.40G

Change-Id: I0973b3cf9dee32100db1d9f3e3ab6aab0ab3226e
CRs-Fixed: 774533
2017-08-30 10:45:52 -07:00
Sridhar Selvaraj
53166d7fdb qcacld-3.0: Drop action frames based on action id
Currently, host driver sets bitmap of allowed action frames to fw.
For a particular action category, there are certain action id
frames which are not processed. This causes host wakeup and leads
to power drain.

Set action id along with action category to fw for action frames
to be allowed to host driver.

Change-Id: Ifa0b40b290fcabb9ce5e48f69bd462aebb9017ac
CRs-Fixed: 2072123
2017-08-30 10:45:47 -07:00
snandini
d3f0b90f84 Release 5.2.0.40F
Release 5.2.0.40F

Change-Id: I772ebef5e38eb14de26f467fb06b977fc0d26bf7
CRs-Fixed: 774533
2017-08-30 10:45:43 -07:00
Dustin Brown
9deab4e137 qcacld-3.0: Remove any reference to net_device->last_rx
net_device->last_rx has long since been depreciated, and was finally
removed in Linux kernel 4.11. Simply remove any reference to the field.

Change-Id: Ia7896707f8ebc7105fcc4b89dd9d1e7f9334d584
CRs-Fixed: 2093262
2017-08-30 10:45:39 -07:00
Houston Hoffman
fa60ff5562 qcacld-3.0: Try to recover from htc_connect_service failure
In the case of low memory allocation failures, the system should be able to
continue functioning after the connect_service failure.

Change-Id: Icd054d541aa95dbf4099426cf73f3dfe6c2c4565
CRs-Fixed: 2097391
2017-08-30 10:45:35 -07:00
Dustin Brown
5f7d38e894 qcacld-3.0: Avoid redefining WLAN_AKM_SUITE_FT_8021X
Linux kernel versions 4.12+ define WLAN_AKM_SUITE_FT_8021X. Avoid
redefining WLAN_AKM_SUITE_FT_8021X when compiling against 4.12+ Linux
kernels.

Change-Id: Iaaaeb0c348933c69034cb852191bed4d6a6862b1
CRs-Fixed: 2093922
2017-08-30 10:45:30 -07:00
snandini
375de76bf1 Release 5.2.0.40E
Release 5.2.0.40E

Change-Id: I77098300ad74965619d4d0e150ac34e01ad2ba9a
CRs-Fixed: 774533
2017-08-30 10:45:26 -07:00
Yun Park
f20b2cab50 qcacld-3.0: Markings updated
Markings updated for ol txrx ipa.

Change-Id: If5afb44ea3f54abf3bf7a98453389f5932f958fc
CRs-Fixed: 2093956
2017-08-30 10:45:22 -07:00
snandini
495f904920 Release 5.2.0.40D
Release 5.2.0.40D

Change-Id: I375942abacf0ead6808ff29fa150e4d60841fd7d
CRs-Fixed: 774533
2017-08-30 10:45:18 -07:00
Tushnim Bhattacharyya
abc588516c qcacld-3.0: Save the unsafe channels in policy manager
Save the list of unsafe channels in policy manager to be used on PCL.

Change-Id: Ibb705830e878d1cc03dfbc76e49c169d2febd75d
CRs-Fixed: 2095290
2017-08-30 10:45:14 -07:00
Sridhar Selvaraj
8c6f5e82b0 qcacld-3.0: Changes to support FILS authentication
Add changes to add support of sending and parsing
authentication packets based on 80211ai specifications.

Change-Id: I684dbc89945ba3aef3186c872e5e1f7564d7e44c
CRs-Fixed: 2028113
2017-08-30 10:45:10 -07:00
Sridhar Selvaraj
c3684c78f7 qcacld-3.0: Support for PMKSA caching
Add support for PMK and PMKID cache based on either bssid or
ssid + cache identifier.

Change-Id: I23c50472e4c2032b953ccf264fc4cadb2ea573ca
CRs-Fixed: 2028113
2017-08-30 10:44:50 -07:00
Sridhar Selvaraj
6cf642fe04 qcacld-3.0: Changes to support FILS AKMs
Add changes to support and parse AKM required for FILS support.

Change-Id: I64f692c3e8173b778fcd4ca6ac2391b8de2bc1d2
CRs-Fixed: 2028113
2017-08-30 10:44:46 -07:00
Sridhar Selvaraj
a44c19ee19 qcacld-3.0: Add changes to parse fils indication element
Add changes to parse fils indication element and add the info
to bss descriptor for further use.

Change-Id: If4b56435180a226438c9f0afdda0f58a26854d88
CRs-Fixed: 2028113
2017-08-30 10:44:42 -07:00
snandini
75af947b89 Release 5.2.0.40C
Release 5.2.0.40C

Change-Id: I7810056c03d87d6cae1059821c6f3ad9eb94cfb5
CRs-Fixed: 774533
2017-08-30 10:44:36 -07:00
Jeff Johnson
3c4e6aece4 qcacld-3.0: Rename struct hdd_wext_state_s
The Linux Coding Style eschews the encoding of type information into
names, so rename struct hdd_wext_state_s to align with that guidance.

Change-Id: I27fffbb103aab157356c98d8af2a8716512ef417
CRs-Fixed: 2094519
2017-08-30 10:44:32 -07:00
Jeff Johnson
e0e77451c0 qcacld-3.0: Replace qcmbr_data_t & qcmbr_queue_t typedefs
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 qcmbr_data_t & qcmbr_queue_t
typedefs do not meet any of those criteria, so replace them with well
named structs.

Change-Id: I8faca21ec5e9fa6d1b46fa4cb77764ca7de2e6b9
CRs-Fixed: 2097978
2017-08-30 10:44:27 -07:00
snandini
e441ee0727 Release 5.2.0.40B
Release 5.2.0.40B

Change-Id: I1aa34657e26d9d8dae8ac5a194c06b13437e6fc5
CRs-Fixed: 774533
2017-08-30 10:44:23 -07:00
Jeff Johnson
353cd29972 qcacld-3.0: Replace typedef hdd_priv_data_t
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 hdd_priv_data_t typedef does
not meet any of those criteria, so replace it with a well named
struct.

Change-Id: I1f31b7d8035e7025abd23cede7b2e8830a8db5d2
CRs-Fixed: 2094518
2017-08-30 10:44:19 -07:00
Mukul Sharma
d16c202da2 qcacld-3.0: Disable auto ps timer on interface down
Auto ps timer is started as part of the interface up
but not disabled as part of the interface down.
Meanwhile if interface down happen hence sme session
get deleted. But if ps timer expire later then it try
to access invalid sme session and lead to abort.
As a part of fix, Disable auto ps timer on interface down.

Change-Id: If67f7ec66d7dea7b8e7e674dc86efe7124244dde
CRs-Fixed: 2061845
2017-08-30 10:44:14 -07:00
snandini
2070007d55 Release 5.2.0.40A
Release 5.2.0.40A

Change-Id: I2ef44304a73f7a84828a03a7d3a95ad7303b816e
CRs-Fixed: 774533
2017-08-30 10:44:10 -07:00
Dustin Brown
49040e1833 qcacld-3.0: Prevent link down by default on Napier
Napier does not yet support PCIe link-down suspend. For the time being,
prevent the PCIe link from going down during suspend by default on
Napier. This is to be reverted once Napier gets proper link-down
support.

Change-Id: I55adea9a1421977fc018193ecfa25eeb51987192
CRs-Fixed: 2092853
2017-08-30 10:44:06 -07:00