Commit Graph

5991 Commits

Author SHA1 Message Date
Dustin Brown
c788acb242 qcacld-3.0: Reject set MC list if adapter is not up
__hdd_set_multicast_list() currently does not validate the adapter
before forwarding the request to PMO. Make sure the adapter is valid
and up before forwarding the request to PMO.

Change-Id: I738da67a1e501e71b8ad748ff50e70088ed77747
CRs-Fixed: 2086025
2017-08-30 10:43:31 -07:00
Dustin Brown
2eb1e45863 qcacld-3.0: Remove name indirection for ieee80211_get_channel()
Versions 4.11+ of the Linux kernel removed '__' from the beginning of
ieee80211_get_channel(). Migrate all calls from __ieee80211_get_channel
to ieee80211_get_channel instead.

Change-Id: I255367d1e1d815e7ebbda43dc06d6d854e1534f4
CRs-Fixed: 2093213
2017-08-30 10:43:27 -07:00
snandini
5cd6e0b32b Release 5.2.0.39Y
Release 5.2.0.39Y

Change-Id: Ie075792296a666233eb2d6b46f5ff91e2d1bf4df
CRs-Fixed: 774533
2017-08-30 10:43:23 -07:00
Govind Singh
19931aa1ee qcacld-3.0: Use host defined wmm params in wma layer
WMA layer needs to use host defined target params as
direct access of wmi target definition is not allowed.

Use host defined wmm params in wma layer.

Change-Id: I8af9c7802c20ce88a6fa158db5acab018807506e
CRs-Fixed: 2072166
2017-08-30 10:43:19 -07:00
snandini
e6b73906e2 Release 5.2.0.39X
Release 5.2.0.39X

Change-Id: Idd783cd96f85cb7cccf005602fceab4cd344435e
CRs-Fixed: 774533
2017-08-30 10:43:06 -07:00
Jingxiang Ge
c64e193882 qcacld-3.0: Ignore bus bw compute when device is in suspend
When wow resume happens, if hdd_bus_bw_work_handler is called
before we complete the resume in host, it causes warning when
sending cmd to fw.

Ignore bus bw compute when device not yet resume from WOW.

Change-Id: I607807d429f0f10207ffa2f4d878e38184415dc7
CRs-Fixed: 2096749
2017-08-30 10:43:02 -07:00
snandini
78943a5abe Release 5.2.0.39W
Release 5.2.0.39W

Change-Id: I289446ab20178a66d70422a87ab40ac57b6e7382
CRs-Fixed: 774533
2017-08-30 10:42:58 -07:00
bings
d1b43e5401 qcacld-3.0: Fix NOL updating issue
Make sure to update NOL correctly for all the right bonding channel.

Irrelevant channel will be marked as eSAP_DFS_CHANNEL_UNAVAILABLE if
wrong bonding channel is gotten.

Change-Id: I40420bdc881ce83aadbce87c10911507be4f3144
CRs-Fixed: 2093557
2017-08-30 10:42:53 -07:00
snandini
137169c07a Release 5.2.0.39V
Release 5.2.0.39V

Change-Id: I0ae0025d5d9cb00a40ca038c8c49fce79c41e29d
CRs-Fixed: 774533
2017-08-30 10:42:49 -07:00
Orhan K AKYILDIZ
a4f58e9824 qcacld-3.0: Add logs for target attach procedure
During target attach procedure, there are a number of messages sent
to the FW. Some of these sends did not check return codes. Add
return code checks and treat the codes accordingly.

Change-Id: Ib515e040b6c7e2ecc23d2d422bb359e83342fcfa
CRs-Fixed: 2064904
2017-08-30 10:42:45 -07:00
Abhishek Singh
b01ac95f03 qcacld-3.0: Initiate connection in with 2x2 even if antenna is shared by LTE
If STA LTE antenna sharing is enabled sometime STA connect with NSS1
even AP is broadcasting NSS 2 capability if the chainmask received in
vdev start resp indicate 1x1. But the connection should be 2x2 and
after association the chainmask mgr will drop it down to 1x1.

Thus initiate connection in with 2x2 even if antenna is shared by LTE
during connection initiation.

Change-Id: Ia31d1ac3a0a5dcafe62e43f122fc81f655cdba63
CRs-Fixed: 2094177
2017-08-30 10:42:40 -07:00
snandini
a57f7ac712 Release 5.2.0.39U
Release 5.2.0.39U

Change-Id: Idc150066f7aec866434e4933ae73c4e8e89a59fb
CRs-Fixed: 774533
2017-08-30 10:42:36 -07:00
Varun Reddy Yeturu
5109486849 qcacld-3.0: Check he_caps before dereferencing
Before populating the nss information into the session,
for a connection, check if HE is supported and then
populate the configuration.

Change-Id: I422e4c388bc71133fec15d053e713b9d10149b09
CRs-Fixed: 2099374
2017-08-30 10:42:31 -07:00
Dustin Brown
bcb82d5fae qcacld-3.0: Avoid uninitialized timer check in ps timer flush
In some cases, some auto powersave timers are never initialized. Change
sme_ps_timer_flush_sync to avoid checking the timer state of such
uninitialized timers.

Change-Id: I0bccca6835238d1d69c71f39fc0ae5a8eee56d23
CRs-Fixed: 2089350
2017-08-30 10:42:27 -07:00
Srinivas Girigowda
576b235de7 qcacld-3.0: HDD: Fix checkpatch warnings
Fix checkpatch warnings.

Change-Id: Ic329caab07db3a11db3474e7a85ad5957537e5be
CRs-Fixed: 2099382
2017-08-30 10:42:23 -07:00
snandini
2c47bb8d26 Release 5.2.0.39T
Release 5.2.0.39T

Change-Id: Idadfbf697bb79b25b26627e29baa3b13d2a035be
CRs-Fixed: 774533
2017-08-30 10:42:19 -07:00
Varun Reddy Yeturu
46ba20c1a4 qcacld-3.0: Add sanity check to avoid len overflow issue in WMI event data
In WMI/WMA, data from event buffer from FW is used without
sanity checks for upper limit in multiple places. This might
lead to a potential integer overflow further leading to buffer
corruption

Add upper bound checks for max limit of event buffer (1536)
in all affected places to prevent the potential integer
overflow

Change-Id: I30826bb69939bcf02ac850bd2d22ada4795b3c98
CRs-Fixed: 2091584
2017-08-30 10:42:15 -07:00
snandini
03f2cc3fe0 Release 5.2.0.39S
Release 5.2.0.39S

Change-Id: I355e6c82fc4f3a8a59c00dbc68e37ece28fd3c86
CRs-Fixed: 774533
2017-08-30 10:42:10 -07:00
Nachiket Kukade
dd30266ce5 qcacld-3.0: Move wow pulse configuration to hdd_configure_cds
Currently wow pulse configuration happens in wlan_startup. After
phase 1 initialization iface timer may expire and send deinit
sequences to shut down features like wow. If an interface is opened
again, triggering of wow pulse without configuring it again will end
up in failures.
Move the wow pulse configuration in phase 2.

Change-Id: Ic9e9a4f7988159bac7b6bf93c5f982ef23e852cd
CRs-Fixed: 2075936
2017-08-30 10:42:07 -07:00
snandini
5fb3da8d9f Release 5.2.0.39R
Release 5.2.0.39R

Change-Id: I06132381984e709b6425939825809a8476766f61
CRs-Fixed: 774533
2017-08-30 10:42:02 -07:00
Yuanyuan Liu
b46a861f7c qcacld-3.0: Remove unused APIs for PLD
Remove unused APIs from PLD. These APIs are already replaced by
WLAN common utility APIs.

CRs-Fixed: 2093939
Change-Id: I187826e7433e93361e1e4d42c081cc2f31b661b3
2017-08-30 10:41:58 -07:00
lifeng
d217d19d7e qcacld-3.0: Add vendor cmd to support antenna diversity
qcacld-2.0 to qcacld-3.0 propagation

Add qca_wlan_vendor_config attr to config antenna diversity.
Add vendor subcmd QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI
to get chain rssi value.

Change-Id: I75c4c8016b15772b0c52be91e446f69580475496
CRs-fixed: 1071075
2017-08-30 10:41:53 -07:00
snandini
a37a0bea97 Release 5.2.0.39Q
Release 5.2.0.39Q

Change-Id: I153fe14b3d84690affb2254af316ec0ecb380aee
CRs-Fixed: 774533
2017-08-30 10:41:49 -07:00
Ashish Kumar Dhanotiya
20f09e4c84 qcacld-3.0: Fix regression in wlan_hdd_add_hostapd_conf_vsie api
Currently In wlan_hdd_add_hostapd_conf_vsie api after checking the
length of element, return is being done because of which it is skipping
the remaining elements.
To fix this issue, don't return after invalid length, instead process
the remaining elements.

Change-Id: I1b370bc30a4400aa4fd5fce5783741272c64386a
CRs-Fixed: 2087787
2017-08-30 10:41:45 -07:00
yeshwanth sriram guntuka
fde0d52e5c qcacld-3.0: Deactivate timers before loop in pe_shutdown_notifier_cb
In pe_shutdown_notifier_cb, lim timers are deactivated
inside the loop. Fix is to invoke lim_deactivate_timers
before the for loop. Move Open system auth api to
lim_process_auth_frame.c

Change-Id: I0f3cc58b5e73d73ae1a2a28ea0ce042e6c926207
CRs-Fixed: 2094532
2017-08-30 10:41:41 -07:00
snandini
53663de675 Release 5.2.0.39P
Release 5.2.0.39P

Change-Id: I5f5b2881655c468012a74f87d3c871fd4a0dee30
CRs-Fixed: 774533
2017-08-30 10:41:37 -07:00
Jeff Johnson
90b79cf08f qcacld-3.0: Remove statusCode from hdd_wext_state_t
Currently hdd_wext_state_t defines field statusCode, but this
field is never referenced and hence is obsolete, so remove it.

Change-Id: I482999414078d02a23b3b6255b0270c28e332191
CRs-Fixed: 2094517
2017-08-30 10:41:32 -07:00
Abhishek Singh
12be60f54b qcacld-3.0: Fix kernel checkpatch warnings in sme_qos_api.h
Fix kernel checkpaitch warnings in sme_qos_api.h

Change-Id: Ib811dcf0b664a2677343a276708d852f4bb67346
CRs-Fixed: 2025503
2017-08-30 10:41:27 -07:00
Jeff Johnson
d084adb90f qcacld-3.0: Remove isESEConnection from hdd_wext_state_t
Currently hdd_wext_state_t defines field isESEConnection, but this
field is only written in one place and never read, hence it is
obsolete, so remove it.

Change-Id: Ia110a11ae968b28b2c74e5b77b4bcca21f69a78f
CRs-Fixed: 2094516
2017-08-30 10:41:23 -07:00
snandini
1d782ed430 Release 5.2.0.39O
Release 5.2.0.39O

Change-Id: I93d382b62056decad2ee2462ac42e6f6924221f1
CRs-Fixed: 774533
2017-08-30 10:41:18 -07:00
Jeff Johnson
89798aa132 qcacld-3.0: Replace typedef hdd_wapi_info_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_wapi_info_t typedef does
not meet any of those criteria, so replace it with a well named
struct.

Change-Id: I3f5d0faf689fac619643c78ca554bba3775bde04
CRs-Fixed: 2094514
2017-08-30 10:41:14 -07:00
Jeff Johnson
c5d7650079 qcacld-3.0: Rename struct beacon_data_s
The Linux Coding Style eschews the encoding of type information into
names, so rename struct beacon_data_s to align with that guidance. In
the process add an hdd_ prefix to avoid future namespace collisions.

Change-Id: Iae1cbbac2bee520ae305b027f68b5af1c4d94ea7
CRs-Fixed: 2093278
2017-08-30 10:41:10 -07:00
snandini
5106abe9ab Release 5.2.0.39N
Release 5.2.0.39N

Change-Id: I4a61d35ece4b76ea830debf61ec20596a95f0097
CRs-Fixed: 774533
2017-08-30 10:41:06 -07:00
Dustin Brown
0e4479e27e qcacld-3.0: Add aggregate stats support for SAP
The cfg80211 get_station callback is not intended for use with
non-station device types. However, it is useful to expose aggregate
statistics for non-station type devices. Add support for returning
aggregate statistics when get_station is used with a soft access point
device.

Change-Id: I8ae32c307f241525a7d74467328d9d40dc805053
CRs-Fixed: 2077011
2017-08-30 10:41:01 -07:00
Jeff Johnson
3758894ae8 qcacld-3.0: Replace typedef hdd_scaninfo_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_scaninfo_t typedef does not
meet any of those criteria, so replace it with a well named struct.

Change-Id: Ia61b1f525a02e21a29e512dcb4c3678b730e6bd6
CRs-Fixed: 2093812
2017-08-30 10:40:57 -07:00
Houston Hoffman
0022711004 qcacld-3.0: Reduce log flooding in __hdd_tx_timeout
Reduce log flooding in __hdd_tx_timeout.  The single __hdd_tx_timeout
error log printed by TX_TIMEOUT_TRACE should be sufficient to
identify the error.  The debugging effort should use the driver logs.
This will ease debugging of other subsystems in the case that
the root cause is a system instability.

Change-Id: Iee3ba3c7d8d7dcd72a3a71ea4f8e4ae8d3bc17b6
CRs-Fixed: 2092183
2017-08-30 10:40:53 -07:00
snandini
051b54b50e Release 5.2.0.39M
Release 5.2.0.39M

Change-Id: Id4f4c040ad162ef0c595413020a7c0ece778e19c
CRs-Fixed: 774533
2017-08-30 10:40:48 -07:00
Zhang Qian
32fd43e7d0 qcacld-3.0: Correct cached connection info
qcacld-2.0 to qcacld-3.0 propagation

The variables used for cached ssid and authentication type will be cleared
after disconnection, hence user will get incorrect info from vendor
event after disconnection.

Use separate variables to save last ssid and auth info.

This is to fix issues of change I5b64d9942a54d35eac0f08b4d8fbed9d1d66a504.

Change-Id: Icc1a5d53e33d650726905e50e4846b77b10cf4ee
CRs-Fixed: 2098560
2017-08-30 10:40:44 -07:00
Linux Build Service Account
56cee29266 Merge "qcacld-3.0: Introduce ini to control NDI mac randomization" 2017-08-24 12:11:16 -07:00
Linux Build Service Account
1b248de915 Merge "qcacld-3.0: Channel hopping for 2_4G and 5G band" 2017-08-24 12:11:15 -07:00
CNSS_WLAN Service
05d84a2384 Merge "qcacld-3.0: Do not enable BPF offload if vdev is not up" into wlan-cld3.driver.lnx.2.0-dev 2017-08-24 10:50:30 -07:00
CNSS_WLAN Service
9db52388fd Merge "Release 5.2.0.39L" into wlan-cld3.driver.lnx.2.0-dev 2017-08-24 10:50:28 -07:00
CNSS_WLAN Service
0b1e030366 Merge "qcacld-3.0: Add support of GCMP (128/256) support" into wlan-cld3.driver.lnx.2.0-dev 2017-08-24 10:50:26 -07:00
CNSS_WLAN Service
bb1679c76b Merge "qcacld-3.0: Add dummy event handler function for WMI_PHYERR_EVENTID" into wlan-cld3.driver.lnx.2.0-dev 2017-08-24 10:50:24 -07:00
snandini
860f13a529 Release 5.2.0.39L
Release 5.2.0.39L

Change-Id: I9e25281d69b63534ca404e6ec34e092e43fe1cbe
CRs-Fixed: 774533
2017-08-24 03:07:12 -07:00
Mukul Sharma
05504acc13 qcacld-3.0: Add support of GCMP (128/256) support
Add support of GCMP (128/256) security ciper support.

Change-Id: I3c9cb3dc72cce0a2cae3e468d3c1f3c004e11adf
CRs-fixed: 2056168
2017-08-24 03:07:11 -07:00
snandini
2d44a4f428 Release 5.2.0.39K
Release 5.2.0.39K

Change-Id: I9ed355034f4d03a10733d90c9697f803c8101a81
CRs-Fixed: 774533
2017-08-23 22:46:17 -07:00
Abhishek Singh
08b06b7214 qcacld-3.0: Connect in 20Mhz when country code restrict channel in 20Mhz
Even if channel is restricted to 20Mhz in a country code, the device
connect in 40-80Mhz.

Fix this by checking the max bandwidth supported by the country code
while calculating the CB mode.

Change-Id: Ibbf538309191b25fe944062ea618033c818095da
CRs-Fixed: 2095247
2017-08-23 22:46:16 -07:00
snandini
145c0502a1 Release 5.2.0.39J
Release 5.2.0.39J

Change-Id: I03886ac117ee13507ee56201d443ba89fa11b802
CRs-Fixed: 774533
2017-08-23 22:07:31 -07:00
bings
284f8be176 qcacld-3.0: Fix race condition that Tx is paused by flow control forever
When hdd_get_tx_resource is called, if free Tx desc is lower than low water
mark, vdev->os_q_paused will be set as 1 and WLAN_STOP_ALL_NETIF_QUEUE will
be triggered after a while. Before WLAN_STOP_ALL_NETIF_QUEUE is triggered,
if ol_tx_flow_ct_unpause_os_q is called, WLAN_WAKE_ALL_NETIF_QUEUE will be
triggered and vdev->os_q_paused will be set as 0. In such case There will
be no flow control unpaused forever.

Tx should be paused by flow control when Tx desc is lower than low water
mark, and unpaused when Tx desc is bigger than high water mark or Tx is
already paused by flow control.

Change-Id: Ib60139fd94a4fb88c92a7f8aaf886ae9d3ca4c75
CRs-Fixed: 2089149
2017-08-23 22:07:30 -07:00