Commit Graph

5991 Commits

Author SHA1 Message Date
Ravi Joshi
8eb65f97bd qcacld-3.0: Enable sending HT/VHT parameters for NDI
Enable sending HT/VHT self capabilities for NDI.

CRs-Fixed: 2080124
Change-Id: I4b01bef970f3f851fdbb052dc7eadf2420bcafb2
2017-08-15 19:27:44 -07:00
snandini
696cef2c4f Release 5.2.0.38P
Release 5.2.0.38P

Change-Id: I8cc0746433a6cb5c997658c6ed6eb96ee602c93f
CRs-Fixed: 774533
2017-08-15 18:25:58 -07:00
Mahesh Kumar Kalikot Veetil
b85cefd1a6 qcacld-3.0: Fix early qdf prints
Fix the error print: 'qdf_trace_msg_cmn: Invalid index - -1'. Move the
qdf print registration to early in driver initialization.

Change-Id: I338e6615d7f76110df762d725f535fb7493cb1cd
CRs-Fixed: 2092806
2017-08-15 18:25:57 -07:00
snandini
32af0202db Release 5.2.0.38O
Release 5.2.0.38O

Change-Id: I4aba67220d4204d6bb8f5a20130dcae40585a7bf
CRs-Fixed: 774533
2017-08-15 16:28:00 -07:00
snandini
a276dc3121 Release 5.2.0.38N
Release 5.2.0.38N

Change-Id: Ie2f6c64cad572feda6e5501f5853c2cbb1e11682
CRs-Fixed: 774533
2017-08-15 13:27:12 -07:00
Prashanth Bhatta
87b6dc0a9f qcacld-3.0: Change semantics of Runtime Lock APIs
QDF Runtime PM lock APIs semantics are changed. Incorporate the
changes done in QDF for all the Runtime PM lock APIs.

CRs-fixed: 1116549
Change-Id: Ia701378031b7e9c01583eaef403e1219fdce47e3
2017-08-15 13:27:12 -07:00
snandini
d77b5f094f Release 5.2.0.38M
Release 5.2.0.38M

Change-Id: I110f1fbb287a73a14fe6bfded4b510a342b1cb83
CRs-Fixed: 774533
2017-08-15 01:27:16 -07:00
Jeff Johnson
e4bad25921 qcacld-3.0: Replace typedef connection_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 connection_info_t typedef does
not meet any of those criteria, so replace it with a well named
struct.

Change-Id: I414f8d1949807f1bc0cda72971fab5696d1d1860
CRs-Fixed: 2092786
2017-08-15 01:27:15 -07:00
Jeff Johnson
745880cfba qcacld-3.0: Rename struct hdd_tx_rx_stats_s
The Linux Coding Style eschews the encoding of type information into
names, so rename struct hdd_tx_rx_stats_s to align with that guidance.

Change-Id: Idb6f8a6a2aa7704dedefdb78689c966babab8c42
CRs-Fixed: 2092737
2017-08-15 01:27:12 -07:00
Jeff Johnson
e962b1972a qcacld-3.0: Rename struct hdd_ap_ctx_s
The Linux Coding Style eschews the encoding of type information into
names, so rename struct hdd_ap_ctx_s to align with that guidance.

Change-Id: I68fb6fb0a2e62d1462b04d05e5232167ce423754
CRs-Fixed: 2092736
2017-08-15 01:27:10 -07:00
Jeff Johnson
82797b6d85 qcacld-3.0: Rename struct hdd_context_s
The Linux Coding Style eschews the encoding of type information into
names, so rename struct hdd_context_s to align with that guidance.

Change-Id: I590cc8751873479a098f90b501c401c4fb4010c4
CRs-Fixed: 2092735
2017-08-15 01:27:07 -07:00
Jeff Johnson
85b5c11849 qcacld-3.0: Rename struct hdd_adapter_s
The Linux Coding Style eschews the encoding of type information into
names, so rename struct hdd_adapter_s to align with that guidance.

Change-Id: I2a43671d9233f596b4e10eda4ad8641d7311fad1
CRs-Fixed: 2092733
2017-08-15 01:27:05 -07:00
snandini
973e0affba Release 5.2.0.38L
Release 5.2.0.38L

Change-Id: I19397b935fae02fb714b063f246dfbc5f6ab3f78
CRs-Fixed: 774533
2017-08-14 21:26:39 -07:00
Krunal Soni
17184269de qcacld-3.0: Send failure reassoc response up on receiving reassoc req
SAP-DUT should reject reassoc request coming from STA to avoid
IOT issue.

Change-Id: I9f8080b6882053a24ac1cb16001b2ec7ceb54c12
CRs-Fixed: 2088722
2017-08-14 21:26:39 -07:00
Dustin Brown
6f17a021d4 qcacld-3.0: Duplicate target_hw_name in HDD
Currently, HDD keeps a ponter to the HIF target_hw_name, which it gives
to userspace upon request. If HIF is closed, this memory is cleaned,
leading to a use-after-free. When the HIF target_hw_name pointer is
received by HDD, store a duplicate instead of the original string.

Change-Id: Ic27f00937cd600ed04908f3ba0f83ede54bc31eb
CRs-Fixed: 2079231
2017-08-14 21:26:36 -07:00
Deepak Dhamdhere
6adc08e0b9 qcacld-3.0: Check for invalid staId in ll stats clear operation
WMI_CLEAR_LINK_STATS_CMDID can cause firmware crash if vdev_id is invalid.
Add staId, i.e. vdev_id checks to sme_ll_stats_clear_req() and
wma_process_ll_stats_clear_req().

CRs-Fixed: 2078391
Change-Id: Ic713b17aebeb89bc0ab69c2e4040d9018d3dc095
2017-08-14 21:26:34 -07:00
snandini
c59c307b90 Release 5.2.0.38K
Release 5.2.0.38K

Change-Id: I920970596e1379bd8f51534fd5375c39858b5a25
CRs-Fixed: 774533
2017-08-14 20:07:48 -07:00
Ashish Kumar Dhanotiya
fd758ecd2f qcacld-3.0: Driver loading failure during monitor mode bring up
The API hdd_update_tgt_cfg decides whether to create a new PDEV
or use the existing one. In this case, the driver is
de-initialized/re-initialized followed by the cfg download. The
FW then generates SYS_READY and the control comes to this function.
Since there is no check for monitor mode the second PDEV is created.
FW seems to provide phy_id = 0 and expects the host to use the
corresponding pdev_id at various places during initialization.
Now here phy_id = 0 and pdev_id = 1, thus initializations fails.

To resolve this issue add a check for monitor mode in hdd_update_tgt_cfg
function and use the same pdev_id.

CRs-Fixed: 2087541
Change-Id: I9dd6449b1e81b6bb218d21c07ca0f5335067865d
2017-08-14 20:07:46 -07:00
jiad
4a7a33cad2 qcacld-3.0: Fix RX LDPC setting in VHT capabilities IE
VHT RX LDPC capability depends on both INI config and HW capabilities.
Current logic does not populate HW capability in a correct way. HW RX
LDPC capability is set as a bitmask of bit 4 instead of boolean value
while INI config is value of 0 or 1. Bitwise AND with HW cap and INI
config always creates a result of 0, which leads to wrong RX LDPC field
in VHT caps IE.

Fix is to populate HW RX LDPC cap as a boolean value and advertise VHT
RX LDPC capability when both INI config and HW capability are set to 1.

Change-Id: Iabf83f74d9bfc2bf7d958ca3a08e9e6090ac7fb8
CRs-Fixed: 2060216
2017-08-14 20:07:40 -07:00
Rajeev Kumar Sirasanagandla
686abd96f4 qcacld-3.0: Add support to randomize probe req SA and Seq number
qcacld-2.0 to qcacld-3.0 propagation

Randomize probe request's source address and sequence number to
improve user's privacy.

Change-Id: Ic367ce4578e65faf49e8092f0f8cce057eead728
CRs-Fixed: 1085995
2017-08-14 20:07:34 -07:00
snandini
0974eb0ad5 Release 5.2.0.38J
Release 5.2.0.38J

Change-Id: I9fd43d8dfc7aa7de75cfda0b5c32c78dc277ee35
CRs-Fixed: 774533
2017-08-14 19:26:32 -07:00
jiad
14fe4fbf5c qcacld-3.0: fix ipa mcc tx_desc pool size
A list of ipa tx_desc is created to have a one-to-one mapping between
tx_desc from ipa driver and tx_desc in wlan. The list pool size is now
set to IpaUcTxBufCount, which is IPA wlan FW tx comp ring size and is
more like a HW resource. But the list is used only for SW MCC TX path.

Fix is to define a new INI to set hdd_ipa_tx_desc pool size. But real
size is minumum of this INI and the global tx_desc pool size.

Change-Id: I3216a4c14ac624cc313d11226909efd4f63841d0
CRs-Fixed: 2076672
2017-08-14 19:26:31 -07:00
Rajeev Kumar
a09a5392ac qcacld-3.0: Only post target interested messages to WMA
Currently cfg update notification is posting every message to WMA.
To reduce message posting load only post target interested messages
to WMA as part of cfg update notification.

Change-Id: I054d684b671d33f2b1ea73062b82af8862de0ab2
CRs-Fixed: 2090997
2017-08-14 19:26:29 -07:00
snandini
c6b5fa37c2 Release 5.2.0.38I
Release 5.2.0.38I

Change-Id: I2f5706d8065f7fe4f5d91f191eb424a48a2c53de
CRs-Fixed: 774533
2017-08-14 11:38:30 -07:00
Amar Singhal
fe715d46b5 qcacld-3.0: Add APL2_ETSIC regulatory domain
Add APL2_ETSIC regulatory domain for Indonesia.

Change-Id: Ia092e4b7633583f2d43ba984d6eeea5ad16341c7
CRs-Fixed: 2001221
2017-08-14 11:38:29 -07:00
Hanumanth Reddy Pothula
18553ae114 qcacld-3.0: Invalidate STA ID with proper value
While resetting connection information, sta id is set to 0,
which is a valid value, leading sta id to hold a valid data
though connection information is reset.

While resetting connection information, set sta id with
HDD_WLAN_INVALID_STA_ID(0xFF) to make sure sta id holds invalid
data.

Change-Id: I7d438f323959a5fb6d3a232a88a8f2ca3c0e0c56
CRs-Fixed: 2040296
2017-08-14 11:38:26 -07:00
snandini
22d0b6b6dc Release 5.2.0.38H
Release 5.2.0.38H

Change-Id: Ia68902d2fd18527135bca0bb085a11a68b64c6ee
CRs-Fixed: 774533
2017-08-14 03:26:57 -07:00
yeshwanth sriram guntuka
ff6eafc63a qcacld-3.0: Do not update multicast counters when unicast packet is received
Currently both unicast and multicast counters are updated
when unicast packet is received if a multicast IP packet
is sent using a unicast MAC address.

Fix is to not update multicast counters when unicast packet is
received.

Change-Id: I6907a0cf51525af1ba6fb7e7be472eff72aaa779
CRs-Fixed: 2052905
2017-08-14 03:26:55 -07:00
snandini
369e4eec3a Release 5.2.0.38G
Release 5.2.0.38G

Change-Id: I21f312f73c7b8093ece4ca6704706d037215d01e
CRs-Fixed: 774533
2017-08-14 00:07:35 -07:00
Poddar, Siddarth
37a17d3f35 qcacld-3.0: Rate limit HS 2.0 Gratuitous ARP droppage messages
Rate limit the HS 2.0 Gratuitous ARP messagess to 1/8
to avoid message flooding in kernel logs.

Change-Id: Icdcb8c18a2f17e2379ca6c5898db28800debdc16
CRs-Fixed: 2084136
2017-08-14 00:07:35 -07:00
snandini
42ddbc4ddd Release 5.2.0.38F
Release 5.2.0.38F

Change-Id: I131726863a9ebb38219447a386ce44afde76b66b
CRs-Fixed: 774533
2017-08-13 16:57:02 -07:00
Kiran Kumar Lokere
0751f0ece9 qcacld-3.0: Remove channel avoid event processing in wma
Remove the channel avoid event processing in wma as the
event processing handled by regulatory component

Change-Id: Ifa0e340c6341b21c192066c8c6eb14418b041062
CRs-Fixed: 2080241
2017-08-13 16:57:01 -07:00
Kiran Kumar Lokere
487957957a qcacld-3.0: Refactor the channel avoid event processing
Replace the channel avoid event data structure with the one defined in
regulatory module, remove the HDD callback as regulatory module is
consuming the FW event now, add logic to notify user space of channel
avoid event.

Change-Id: I6b1b986837ab89503a7e0469619193b0af8127da
CRs-Fixed: 2080241
2017-08-13 16:56:59 -07:00
snandini
4ef67b7121 Release 5.2.0.38E
Release 5.2.0.38E

Change-Id: I1fa854cba5784378d8cfc0fcca0910f787fe3cf5
CRs-Fixed: 774533
2017-08-13 16:16:13 -07:00
Agrawal Ashish
71afe14353 qcacld-3.0: Set authentication timeout for EAPOL to 75 sec
As soon as EAPOL start happens, supplicant start authentication
timeout as 70 sec to complete authentication.
Driver should not issue disassoc before this time expires.
Fix this by increasing authentication timeout for EAPOL to 75 sec

CRs-Fixed: 2039542
Change-Id: Ib07cff669099563bc7ba87367cf88da5cc6d0fd2
2017-08-13 16:16:13 -07:00
Rajeev Kumar
f98a5cc3f8 qcacld-3.0: Hold wake lock for SAP client disconnect notification
Hold wake lock in driver for SAP client disconnect notification to
user space inorder to avoid hostapd and driver going out of sync.

Change-Id: If81cf836b8fc047731735aa28831d1efa2f4e7b2
CRs-Fixed: 2084282
2017-08-13 16:16:11 -07:00
snandini
09bdcc59fe Release 5.2.0.38D
Release 5.2.0.38D

Change-Id: Ib84bea6181d0133d4458308d0990b95c8ba38df2
CRs-Fixed: 774533
2017-08-13 15:36:45 -07:00
Krunal Soni
158bfe6e18 qcacld-3.0: Introduce INI to disable high HT MCS for 2G STA
To resolve one of IOT issues, introduce INI called
"disable_high_ht_mcs_2x2" which will disable high MCS indices for
2G STA case based on INI value.

Change-Id: I60c5edd89a42f74c0f439fe6a9ab0c75373622b2
CRs-Fixed: 2087438
2017-08-13 15:36:44 -07:00
Varun Reddy Yeturu
3fb61716e7 qcacld-3.0: Enable logging for Serialization
Define the category info to print the serialization
module logs using QDF

Change-Id: If44213d4c0e4c5aca3011db4351cb6a778cdca6f
CRs-Fixed: 2091023
2017-08-13 15:36:41 -07:00
snandini
5c46e19d97 Release 5.2.0.38C
Release 5.2.0.38C

Change-Id: I17acda242d7358b9e425575937eef0282bedb52f
CRs-Fixed: 774533
2017-08-11 19:38:14 -07:00
snandini
587b9b0a4b Release 5.2.0.38B
Release 5.2.0.38B

Change-Id: Ica27f22fc6a3971397b9c3fdcb6638398abd0709
CRs-Fixed: 774533
2017-08-11 06:40:16 -07:00
Wu Gao
30f65eb90b qcacld-3.0: Revert the change for cleanup qdf list
wma_vdev_find_req will remove the request from queue if found it. If
remove the request when peek it, then wma_vdev_find_req fail and memory
leak happens. The change for cleanup qdf list is for NULL mac_ctx case.
Solution is revert previous change and move mac_ctx checker back.

Change-Id: I06deedaf9f8a3c788621d8468e00d4d4852e2d9f
CRs-Fixed: 2090051
2017-08-11 06:40:16 -07:00
Hanumanth Reddy Pothula
063cbe9e58 qcacld-3.0: Update rate flags appropriately
Presently, Host fails to report valid actual link speed
(gReportMaxLinkSpeed=0) to the upper layer when firmware
reports legacy link speeds as Host fails to update legacy
bit in rate flags, reported to upper layer.

To mitigate this issue report rate flags with legacy bit set
on receiving valid rates from firmware and if MCS index is
invalid, as WMA fails to set valid MCS index for legacy rates.

Change-Id: I0a542e8aa56eb18e653aad30c1bec13f133d267c
CRs-Fixed: 2089469
2017-08-11 06:40:14 -07:00
bings
14d1d3be37 qcacld-3.0: Optimize channel selection in ACS mode
SAP selects different channel between cld2.0 driver and cld3.0
driver in ACS mode, which leads to confusion.
In cld2.0 driver, channel with the least weight is the first
choice, and non-overlap channel will be selected only when
overlap channel is disabled and its weight is not bigger than
the first choice channel.
In cld3.0 driver, non-overlap channel will be selected when
overlap channel is disabled.

The behavior in cld2.0 is more reasonable. Make cld3.0 driver
follow cld2.0 driver.

Change-Id: I6243ace8db7314c698a9b554e65794d2ee66e555
CRs-Fixed: 2086287
2017-08-11 06:40:12 -07:00
snandini
5afded7a39 Release 5.2.0.38A
Release 5.2.0.38A

Change-Id: Icbcc7c45f0d4c61ecf41ec00771de5689ffc8a2b
CRs-Fixed: 774533
2017-08-11 05:07:17 -07:00
Krishna Kumaar Natarajan
585f030eb2 qcacld-3.0: Add channel 149 to scan channel list for emulation
Add channel 149 to scan channel list for emulation.

Change-Id: I8ea8bd6de5cc510fde51bfaaab95583df3cf30cf
CRs-Fixed: 2088941
2017-08-11 05:07:17 -07:00
snandini
5090fee622 Release 5.2.0.38
Release 5.2.0.38

Change-Id: Iff0fb05a1044746431bc524d6555ab1102431cfc
CRs-Fixed: 774533
2017-08-10 06:12:58 -07:00
Frank Liu
dc2cefb153 qcacld-3.0: fix sap not restart when on unsafe channel
In LTE Coex test, firmware will report the unsafe channels, and if sap
runs on these channels, driver goes through channel select process and
restart. There are some situation, in channel select process, SAP can't
find the proper PCL channel lists, and fail to restart.

This fix is to let SAP continue to pick up a safe channel from ACS
range when fail to get pcl.

Change-Id: I54145547d2b161aec09caa2dabd4d4b52aa15f03
CRs-Fixed: 2064534
2017-08-10 06:12:57 -07:00
Agrawal Ashish
aff2898902 qcacld-3.0: Trigger copy of pktlogs to SD Card on basis of ring ID
For fatal events , driver sends EVENT_WLAN_LOG_COMPLETE
to userspace. But there can be multiple events for each
ring id like connectivity, driver , frimware, wakelock etc.
Cnss diag has to trigger copy of pkt log to /sdcard only for
one bug report, so send ring id in log complete event so
that it can trigger copy for driver ring id.

Change-Id: I0776775ab81fd2920ea440b773b146b6af61e434
CRs-Fixed: 2028068
2017-08-10 06:12:55 -07:00
snandini
260d3d7b66 Release 5.2.0.37Z
Release 5.2.0.37Z

Change-Id: I944dcd2b13f9000d092bb814d1760b25043fe155
CRs-Fixed: 774533
2017-08-10 03:12:05 -07:00