Grafik Komit

6614 Melakukan

Penulis SHA1 Pesan Tanggal
snandini
89748e0235 Release 5.2.0.41J
Release 5.2.0.41J

Change-Id: Ida0fbf08fa29da951097a8e9dae7ce1071082e86
CRs-Fixed: 774533
2017-09-03 21:36:26 -07:00
jiad
5b98663690 qcacld-3.0: Fix potential spinlock recursion on UP
wlan_hdd_update_txq_timestamp tries to grab txq spinlock
in __dev_queue_xmit context. Issue is txq spinlock is
already held before calling into driver's ndo_start_xmit
callback. On UP system, kernel throws a BUG and system
crashes.

Fix is to detect spinlock recursion and only tries
to grab the lock when it is not held on the same
CPU or not held.

Change-Id: I3956ef00c4f4a563155dc82ed8f95f097129fb0c
CRs-Fixed: 2050134
2017-09-03 21:36:23 -07:00
snandini
d13036f3f7 Release 5.2.0.41I
Release 5.2.0.41I

Change-Id: I7a2a048b2cb257ef501a5f4181adf826cd8b91d3
CRs-Fixed: 774533
2017-09-02 04:19:38 -07:00
Sandeep Puligilla
856e8016a9 qcacld-3.0: Remove legacy scan complete callback
Remove legacy scan code related to
scan complete callback API.

Change-Id: Ia8b85548ff64ad77b5066fe03229e2b0b2f7fae3
CRs-Fixed: 2101188
2017-09-02 04:19:37 -07:00
Sandeep Puligilla
3ee7ddf085 qcacld-3.0: cleanup legacy scan code
-Remove legacy scan code related to wext interface.
-Remove code under NAPIER_SCAN macro
-Remove legacy abort scan code

Change-Id: I38900a4c786b5ba5f31006e6e29332c081a565cf
CRs-Fixed: 2101188
2017-09-02 04:19:31 -07:00
snandini
8527526309 Release 5.2.0.41H
Release 5.2.0.41H

Change-Id: Id1ee0976c0ba9723ed39bcba94cbda1039eb51c4
CRs-Fixed: 774533
2017-09-02 03:38:32 -07:00
Dustin Brown
35b61f6b69 qcacld-3.0: Deinit/ini WMA VDEV around mem zero
The WMA vdev structure contains wakelocks which must be deinitialized
and initialized any time these structures are mem-zeroed. Add
deinit/init calls to vdev attach error cases.

Change-Id: I36012606d4cc49c076ac6903ff49530c45433374
CRs-Fixed: 2102645
2017-09-02 03:38:31 -07:00
snandini
94a55310a2 Release 5.2.0.41G
Release 5.2.0.41G

Change-Id: I95b09533bd186e7e8cedd5ef23c6394508302824
CRs-Fixed: 774533
2017-09-02 01:13:19 -07:00
Abhishek Singh
748d8a27aa qcacld-3.0: Fix assert in qdf_mc_timer_stop for host roam timers
The host roam timers are deactivated and deleted in
lim_delete_timers_host_roam but again in lim_deactivate_timers
they are deactivated which results in assert.

Fix this by deactivating roam timers before they are destroyed.

Change-Id: I03f069edaf4361111dc5240fce2003c04c9c6509
CRs-Fixed: 2095265
2017-09-02 01:13:18 -07:00
snandini
0fef708275 Release 5.2.0.41F
Release 5.2.0.41F

Change-Id: I5bc2f9ff3cf624b4f4298a2d460821b734a62f6c
CRs-Fixed: 774533
2017-09-02 00:17:54 -07:00
Lin Bai
59b79768d3 qcacld-3.0: Turn on WLAN_NL80211_TESTMODE properly
WLAN_NL80211_TESTMODE need to be controlled by CONFIG_NL80211_TESTMODE,
or compiler will throw error, like - API cfg80211_testmode_* not defined.

CRs-Fixed: 2103007
Change-Id: I84536b8527656d8d0d4a0a7961ca8a83e8dd733c
2017-09-02 00:17:53 -07:00
Houston Hoffman
b18dc6e0fe qcacld-3.0: Move nl_serv_init to before cfg printing
HDD_CFG prints were being dropped from the qxdm log.
Initialize the nl server before the logging service
to guarantee all logs are delivered over the nl sockets.

Change-Id: I5719f8e2791e37a8c5e61ccf5c025afd1084ed99
CRs-Fixed: 2094161
2017-09-02 00:17:51 -07:00
Dustin Brown
7b3dea22f9 qcacld-3.0: Statically allocate wlan logging buffer
To aid in debugging memory leaks, and improve the robustness of log
recovery from crash dumps, statically allocate pglog_msg in the global
scope. This allows logs to be inspected even in cases where a crash
came late in the unload process. It also improves log recovery
robustness by removing the possibility of using a NULL pointer offset
under certain memory corruptions scenarios.

Change-Id: I7301254d3d3ff811b322e435962e78f997937c2b
CRs-Fixed: 2074611
2017-09-02 00:17:49 -07:00
snandini
05bdeeac75 Release 5.2.0.41E
Release 5.2.0.41E

Change-Id: I51b353a68534149d8c7276361fb30333769ef4bb
CRs-Fixed: 774533
2017-09-01 22:09:08 -07:00
Will Huang
496b36c936 qcacld-3.0: Add support of request peer stats info(part 3)
qcacld-2.0 to qcacld-3.0 propagation

FW has limitation to support old WMI_REQUEST_STATS_CMDID and
WMI_UPDATE_STATS_EVENTID interface on AP vDev. FW suggest to use new
WMI_REQUEST_PEER_STATS_INFO_CMDID and WMI_PEER_STATS_INFO_EVENTID to
get tx/rx rate.

This checkin is about HDD layer, provide APIs/callbacks to upper layer
to query rssi/tx/rx statistics of peer station associated with SAP,
and provide a default disabled ini setting and checking FW's
WMI_SERVICE_PEER_STATS_INFO capability to control this get peer info
interface. Add/change iwpriv/QCA_NL80211_VENDOR_SUBCMD_GET_STATION/
cfg80211_ops.get_station interfaces to upper layer.

Change-Id: Ib1571219faa16e3bc8c3eb1260137ae08b8b6016
CRs-Fixed: 2059507
2017-09-01 22:09:05 -07:00
snandini
dbc2d2f736 Release 5.2.0.41D
Release 5.2.0.41D

Change-Id: Ibd71e3e0b9e27810ae88565f5842a8606b010d63
CRs-Fixed: 774533
2017-09-01 20:38:33 -07:00
Nachiket Kukade
c3f92f7f44 qcacld-3.0: Set start and end channel configuration option
Add changes to enforce start and end channel limit in do_acs
if driver force acs and vendor based acs are enabled.

Also add changes to fix memory leak in set vendor channel API

Change-Id: Id45aaf3eb3c3dc1606a249136d3801a63ee854c4
CRs-Fixed: 2088567
2017-09-01 20:38:31 -07:00
Nandini Suresh
1efb016666 Release 5.2.0.41C
Release 5.2.0.41C

Change-Id: Iee69a5d1627f0ca897d8f6dfc004effbffbbe012
CRs-Fixed: 774533
2017-09-01 11:18:05 -07:00
Jeff Johnson
1083b6ebfb qcacld-3.0: Replace hdd_context_t in wlan_hdd_wmm.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: Iebaa140de17abf4face710245c8431680663a0a0
CRs-Fixed: 2100153
2017-09-01 06:58:10 -07:00
Jeff Johnson
2cd9211f2f qcacld-3.0: Replace hdd_context_t in wlan_hdd_disa.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: Ia1b151d2590493b15422bd600dedb427a6eb39db
CRs-Fixed: 2100152
2017-09-01 06:58:10 -07:00
Jeff Johnson
03f8f3611d qcacld-3.0: Replace hdd_context_t in wlan_hdd_debugfs_llstat.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: Id69553b8ef9cc8daad1e1c136c0edfccfb820860
CRs-Fixed: 2100150
2017-09-01 06:58:10 -07:00
Jeff Johnson
5676b738b9 qcacld-3.0: Replace hdd_context_t in wlan_hdd_napi.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: If336b3f168d6e4b5cd1925030cd65e171f8100b3
CRs-Fixed: 2100148
2017-09-01 06:58:09 -07:00
Jeff Johnson
c1ad741419 qcacld-3.0: Replace hdd_context_t in wlan_hdd_wowl.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: Icf9c75c9b99c7f94b14d0f70597ab05eebadc4f5
CRs-Fixed: 2100145
2017-09-01 06:58:09 -07:00
snandini
34a62edc1f Release 5.2.0.41B
Release 5.2.0.41B

Change-Id: Icc5c4c46df5ddd76a22c2820ac9b1e072dac2e06
CRs-Fixed: 774533
2017-09-01 01:11:30 -07:00
Dustin Brown
e5d06fb548 qcacld-3.0: Use max STA count when iterating SAP clients
When printing all of the stations connected to a SAP adapter, the ini
value for max number of station clients is used as the iteration limit.
Instead, use the max number of stations constant used to allocate the
array. This ensures all connected stations are printed in all cases, and
removes the theoretical possibility of running off the end of the array
in some configurations.

Change-Id: I3a506905f40272efe472028391e8080d764cb390
CRs-Fixed: 2100833
2017-09-01 01:11:30 -07:00
Rajeev Kumar Sirasanagandla
b50e3a5f36 qcacld-3.0: Check for space termination of driver command name
qcacld-2.0 to qcacld-3.0 propagation

Currently, few hdd driver commands which expect input are not checked
for space termination of command name. Skip of this check can result
in buffer overread error.

To fix this, add check based on the length of command name.

Change-Id: I92a4efd7e729a9d792af166b4a09963886c9942f
CRs-Fixed: 2090558
2017-09-01 01:11:28 -07:00
snandini
a0e0de3a2c Release 5.2.0.41A
Release 5.2.0.41A

Change-Id: I41d8b39d1186c8858b5ece3a590f570f8c87b00a
CRs-Fixed: 774533
2017-08-31 23:25:16 -07:00
Jeff Johnson
621cf97e55 qcacld-3.0: Replace hdd_context_t in wlan_hdd_ioctl.[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: I51019e186fff585146ff79928c00dfc6a854e78a
CRs-Fixed: 2100191
2017-08-31 23:25:16 -07:00
Jeff Johnson
d85b761567 qcacld-3.0: Replace hdd_context_t in wlan_hdd_lpass.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: I5ac8829606eda6940deebe13037e15e47bed6f9b
CRs-Fixed: 2100188
2017-08-31 23:25:14 -07:00
snandini
466ebf6573 Release 5.2.0.41
Release 5.2.0.41

Change-Id: I46b837360f8739101939b3c4baae52bf55206f27
CRs-Fixed: 774533
2017-08-31 22:40:19 -07:00
Srinivas Girigowda
b1a7d03636 qcacld-3.0: Log cleanup
Propagation error, remove this log.

CRs-Fixed: 2099382
Change-Id: I73c61839c2b6692a6b78eb995c9db9e20402df57
2017-08-31 22:40:18 -07:00
Jeff Johnson
6654917cc5 qcacld-3.0: Replace hdd_context_t in wlan_hdd_memdump.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: If3ba3e869a9dddd14432c6d9416d7b386f23eb3d
CRs-Fixed: 2100182
2017-08-31 22:40:16 -07:00
Jeff Johnson
f049e74874 qcacld-3.0: Replace hdd_context_t in wlan_hdd_nan.[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: I5f846c4b234bd55ff3120fd69ea13332e3e80d74
CRs-Fixed: 2100180
2017-08-31 22:40:14 -07:00
Srinivas Girigowda
161b9f298a qcacld-3.0: Schedule work for cds_trigger_recovery() in atomic ctx
Currently wherever cds_trigger_recovery() is called in atomic
context, work is being scheduled.
This change is to modify cds_trigger_recovery() itself detect
that it is being called in atomic context and then
itself schedule work to its own handler.

Change-Id: Id37e97c9b838ad18c355234aa13f2b9c05503029
CRs-Fixed: 2081666
2017-08-31 22:40:11 -07:00
snandini
8a7bc51b9d Release 5.2.0.40Z
Release 5.2.0.40Z

Change-Id: Iadc4ad08ca55d9f2132d4f23b0bc8cc817779a25
CRs-Fixed: 774533
2017-08-31 21:11:23 -07:00
Lin Bai
a016e9a928 qcacld-3.0: Fix build error without WLAN_NL80211_TESTMODE
Compiler is throwing undefined WLAN_HDD_VENDOR_IE_ACCESS_NONE error after
WLAN_NL80211_TESTMODE disabled.

Move enum wlan_hdd_vendor_ie_access_policy out of WLAN_NL80211_TESTMODE.

CRs-Fixed: 2100717
Change-Id: I09e28eeff236006486087911064691339e59fc84
2017-08-31 21:11:20 -07:00
gaolez
5c509f36e8 qcacld-3.0: fix miss CSA IE when band switch
qcacld-2.0 to qcacld-3.0 propagation

Setting CSA IE if not all the STA devices support ECSA while
configure the macro CHANNEL_HOPPING_ALL_BANDS. Otherwise, SAP
will miss CSA IE when switch band from 5G to 2G.

Change-Id: I7aad2bb0d967e73c0ea87acb9820bebdc0455410
CRs-Fixed: 2024425
2017-08-31 21:11:15 -07:00
snandini
9feddff4c5 Release 5.2.0.40Y
Release 5.2.0.40Y

Change-Id: I049c97eea41b287be55c10902b975cf50da9c8b0
CRs-Fixed: 774533
2017-08-31 15:26:34 -07:00
Naveen Rawat
31b0f27c42 qcacld-3.0: Fix ndp peer departed indication
OS_IF layer function recieving NDP peer departed indication expects
different structure than what was supplied, causing wrong values to
be interprated and leading to crash. Fix this by passing correct
structure data type.

Change-Id: I1ad6860e5c55b0efe65691262bd563e84f523a7f
CRs-Fixed: 2100848
2017-08-31 15:26:34 -07:00
snandini
f757aed99e Release 5.2.0.40X
Release 5.2.0.40X

Change-Id: Id00fd985402fcd95218e65b4d44a4f31d52cf058
CRs-Fixed: 774533
2017-08-31 14:48:47 -07:00
Nachiket Kukade
3208c162ba qcacld-3.0: Pass appropriate channel list in vendor ACS event
If vendor acs support is enabled, driver sends a list of channels
through a vendor event when it receives do_acs. Currently it sends
list of all valid channels even if hostapd or INI has specified
specific channels which is not expected.
If available send list of channels specified by hostapd or INI.

Change-Id: I9b931c69ce72a18c7e1ec603143091da6abca70c
CRs-Fixed: 2100742
2017-08-31 14:48:46 -07:00
Abhishek Singh
dd2cb5780b qcacld-3.0: Add diag event for Assoc and Auth Complete
Currently we are not getting any event for ASSOC/AUTH
completion.To debug issues where AP does not respond
to our AUTH\ASSOC request or the response packet from
AP is lost we would like to have clear indication whether
the request from DUT has reached AP or not.
Add diag event for both auth and assoc completion to
inform whether we got ack for the auth and assoc request
pkt.

Change-Id: Ia01da4a9f0d5435733844178643a29fad58d2a5c
CRs-Fixed: 2001968
2017-08-31 14:48:44 -07:00
snandini
436cc67243 Release 5.2.0.40W
Release 5.2.0.40W

Change-Id: I061306b3f606e270ada6c137c1b0d6b889e3ba19
CRs-Fixed: 774533
2017-08-31 11:46:42 -07:00
Vignesh Viswanathan
0942935928 qcacld-3.0: Add new vendor AP to associate in 1x1
Some vendor APs are not able to handle the SMPS frames causing the
data rate to drops to very low rates and before it recovers the next
SMPS frame is triggered.

Add new vendor AP OUI and vendor AP data, compare the vendor AP OUI
and data with AP capabilities and if there is a match, associate in
1x1 to that AP.

Change-Id: I753582fa6a0db9fc24587f053be34d44d5604944
CRs-Fixed: 2093741
2017-08-31 11:46:41 -07:00
snandini
0b45bc7085 Release 5.2.0.40V
Release 5.2.0.40V

Change-Id: Id64a66c8de146f678d2549091c9269e26c90c719
CRs-Fixed: 774533
2017-08-31 11:00:45 -07:00
Liangwei Dong
05475a7868 qcacld-3.0: Fix nss value zero issue
If DUT connects to 1x1 AP in DBS mode, the nss value
will be reduced to 0 in current logic.

Fix by checking the nss > 1 before reduce.

Change-Id: I908ba358411ec7c99f57bb472a0d52a24e0422c3
CRs-Fixed: 2089211
2017-08-31 11:00:44 -07:00
Abhishek Singh
b59f8d40ee qcacld-3.0: Use user provided BW for 2.4Ghz HT connection
Add support to use user provided BW for 2.4Ghz HT connection.
If HT capability in connect req indicate connection in HT20, force
the connection in 2.4Ghz to HT20 only even if AP support HT40.

Added ini override_ht20_40_24g to enable/disable this feature.

Change-Id: Ia03b67b9d6487e3e27f1cf8875afe95af1300b4f
CRs-Fixed: 2084929
2017-08-31 11:00:42 -07:00
Paul Zhang
87251ccfa6 qcacld-3.0: Don't check MIC fail if SA is self MAC
When DUT connects to specific AP, it receives the frame whose
SA is self MAC and MIC failure flag is set at the same time.
This will cause disconnection with the AP because MIC failure.

To fix this unexpected disconnection issue, do not check MIC
failure if discard flag is set by fw.

Change-Id: I9029da9d329679bf0fd61be234690c764cceb57c
CRs-Fixed: 2090575
2017-08-31 11:00:40 -07:00
snandini
ae23028c96 Release 5.2.0.40U
Release 5.2.0.40U

Change-Id: If9040c0126b4bccf82391d383ec51a98a56f9ea8
CRs-Fixed: 774533
2017-08-31 09:54:44 -07:00
Nachiket Kukade
a48556932a qcacld-3.0: Start vendor ACS timer after the vendor event is sent
Driver starts a vendor ACS timer which times out if vendor app doesn't
respond with commands within stipulated time. But in do_acs this timer
is started before all the channel list parsing, regulatory checks and
buffer allocation code. In some cases this takes up enough time to
expire the timer before sending the vendor event. Similar situation will
arise if a buffer allocation fails in between.
To avoid this start timer after the vendor event is sent.

Change-Id: If9bea4643e03f0541ac8d8af2183c1e8d3a6cc40
CRs-Fixed: 2096246
2017-08-31 09:54:41 -07:00