Commit Graph

6170 Commits

Author SHA1 Message Date
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
Manjunathappa Prakash
143a24e732 qcacld-3.0: Missing FW interface, disable CONFIG_IPA_OFFLOAD
htt.h FW interface file has missing interface for
WLAN_WDI_IPA_GET_SHARING_STATS_REQ and WLAN_WDI_IPA_SET_QUOTA_ReQ.
Disable IPA until we have them coming from FW file

Change-Id: I0fdec26c6a6b9d5e0f97cb31f344cd6f446b2e53
CRs-Fixed: 2084537
2017-08-11 19:38:13 -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
yeshwanth sriram guntuka
343a3f2833 qcacld-3.0: Fix incorrect length of encrypted auth frame
Memory for encrypted auth frame is allocated based on macro
SIR_MAC_AUTH_CHALLENGE_LENGTH. SIR_MAC_AUTH_CHALLENGE_LENGTH
was updated to 253 from 128. Auth failure is observed on
receiving challenge text of length 128.

Fix is to use length based on the challenge text received.

Change-Id: I5ba5748c9ae00b61743883862ca884ac1134da15
CRs-Fixed: 2084599
2017-08-10 03:12:05 -07:00
Abhishek Singh
07b9785afd qcacld-3.0: Fix timer leak when wma_hold_req_timer timeout
When wma_hold_req_timer timer timeout, the timer is not destroyed
and thus timer leak is seen while unload.

To fix added destroy timer before freeing the hold req.

Change-Id: I532975fe13057d96ac924c58d0f42a0010a00a97
CRs-Fixed: 2084993
2017-08-10 03:12:03 -07:00
snandini
195427c7a4 Release 5.2.0.37Y
Release 5.2.0.37Y

Change-Id: I51fcb1c3eeb8ad05fcec7d66a6f503921118e8c6
CRs-Fixed: 774533
2017-08-10 01:49:28 -07:00
Himanshu Agarwal
dd2196a8f5 qcacld-3.0: Do netif_rx_ni() for frames received before peer assoc
While processing of frames received before peer is registered in process
context, tcp_v4_rcv() is called which takes a spinlock and in between the
processing before spinlock can be released, it is getting preempted by
hif_napi_poll() as it gets executed in softirq context. It tries to take
the same spinlock in tcp_v4_rcv() resulting in deadlock.
Do netif_rx_ni() for frames received before peer is registered.

Change-Id: I6228984f209bb9312ed9d8f3937d6036918ff750
CRs-Fixed: 2034244
2017-08-10 01:49:27 -07:00
snandini
34bb531121 Release 5.2.0.37X
Release 5.2.0.37X

Change-Id: Iff455e7628cf92ebddda0878e45b3aedf5d3154d
CRs-Fixed: 774533
2017-08-09 20:50:32 -07:00
Lin Bai
28a4ca04e9 qcacld-3.0: Fix flush uninitialized delay_work crash
With TDLS enabled and CONVERGED_TDLS_ENABLE defined, wlan_hdd_tdls_init()
will be bypassed by tdls_umac_comp_active flag.
While, in wlan_hdd_tdls_exit(), similar check missed, which causes
uninitialized delay_work be flushed. This leads to final crash.

Check tdls_umac_comp_active flag in begining of wlan_hdd_tdls_exit()
to avoid crash.

CRs-Fixed: 2087653
Change-Id: I0d9458683f092456e54ccf42988d4f8534922947
2017-08-09 20:50:32 -07:00
Will Huang
03cb2ab6ff qcacld-3.0: Add TXRX_IEEE11_AX for enum tx_peer_level
It is reported by Static Analyze tool as buffer overflow when call
into function ol_txrx_bad_peer_txctl_update_threshold, because
WLAN_WMA_IEEE80211_MAX_LEVEL is defined as 5 but TXRX_IEEE11_MAX
defined as 4, so level 4 will pass as max index value which is buffer
overflow.

Add TXRX_IEEE11_AX so TXRX_IEEE11_MAX aligns with
WLAN_WMA_IEEE80211_MAX_LEVEL.

Change-Id: I49fe348f1071648d86e456c6df63738ec507dd6c
CRs-Fixed: 2058227
2017-08-09 20:50:31 -07:00
gaolez
e2920bda2b qcacld-3.0: Add ini option for action frame based channel switch
qcacld-2.0 to qcacld-3.0 propagation

Add ini option to enable/disable action frame based channel switch.

Change-Id: I340464a18ef0b5cf09f481a23b01edcf04904e34
CRs-Fixed: 2082563
2017-08-09 20:50:29 -07:00
snandini
71c779adea Release 5.2.0.37W
Release 5.2.0.37W

Change-Id: Ic588909b9fc7db62fee78935c99a11495ef785cf
CRs-Fixed: 774533
2017-08-09 19:37:09 -07:00
yeshwanth sriram guntuka
d716a416da qcacld-3.0: Fix memory allocation error
Allocation of memory for assoc resp fails
when frame length is zero and error message
is displayed.

Fix is to allocate memory only when frame length
is greater than zero.

Change-Id: I6c3a457b7eb9d49fa67bee7570594dd81c2eb3d7
CRs-Fixed: 2060384
2017-08-09 19:37:08 -07:00
yeshwanth sriram guntuka
2413063a04 qcacld-3.0: Fix kernel memory corruption
Buffer overflow in ConvertQosMapsetFrame function
when num_dscp_exceptions value is less than 16.

Fix is to return from function if num_dscp_exceptions
is less than 16.

Change-Id: I2fcce60b7fe5e988348cee786e9a4d493d9512fe
CRs-Fixed: 2086305
2017-08-09 19:37:07 -07:00
Chris Guo
9e293a9667 qcacld-3.0: Fix synchronization issue of credit number
The target_delta and bus_delta combined with target_tx_credit
to fulfil the credit function of host.
A global lock is needed to ensure reenterable.

Change-Id: I71c006ccfe05b442706283490cd7bba4cc8a6f5f
CRs-Fixed: 964530
2017-08-09 19:37:05 -07:00
Yingying Tang
7ccf7d027d qcacld-3.0: Fix compilation error of unsigned only in ISO C90
Constant value 4294967295 is recognized as an signed integer
in ISO C90. Change the definition of the constant value to
4294967295UL to fix compilation error where need a unsigned
value as a input parameter.

Change-Id: I02f67b6351c53b5e3331ce668059c4c61953a8d3
CRs-Fixed: 2023140
2017-08-09 19:37:03 -07:00
snandini
246acbe2af Release 5.2.0.37V
Release 5.2.0.37V

Change-Id: Iaf4881dcd0552b56adaed2e958ed3c53b70a9b6f
CRs-Fixed: 774533
2017-08-09 18:10:47 -07:00
Chris Guo
1751acf0c2 qcacld-3.0: Fix QDF assert in command ipaucstat
When doing HDD context check in ipa_init, the CDS is not yet
loaded. So remove the CDS loading check in ipa_init.

Change-Id: I45843c406f280cfbf932bc489f9051c2300b77ba
CRs-Fixed: 2070428
2017-08-09 18:10:46 -07:00
jiad
05c1e81910 qcacld-3.0: fix ipa mcc tx_desc leak
In MCC case when vdev pause queue is full, driver fails to tx and pkts
are dropped. ipa tx_desc only replenishes to ipa driver. This leads to
holes in hdd_ipa_tx_desc free list and list will be drained out causing
unexpected packet drops.

Fix is to replenish tx_desc to wlan driver maintained free list as well
using ipa registered skb free callback.

Change-Id: I1ae8570816efd822d5ced2c6383a03c56b12ec89
CRs-Fixed: 2073444
2017-08-09 18:10:45 -07:00
Yingying Tang
87f0139d6a qcacld-3.0: Fix compilation error when WLAN_FEATURE_ROAM_OFFLOAD is disabled
csr_roam_roaming_offload_timer_action() is used only when
WLAN_FEATURE_ROAM_OFFLOAD is enabled. But it is defined out of
WLAN_FEATURE_ROAM_OFFLOAD. So there is a compilation error that
csr_roam_roaming_offload_timer_action() is defined but not used when
WLAN_FEATURE_ROAM_OFFLOAD is disabled. Add fix to resolve this issue.

Change-Id: I31036a91df3d2799d53fb64f73dbae847bee97bf
CRs-Fixed: 2023165
2017-08-09 18:10:43 -07:00
snandini
8d85c9e1c8 Release 5.2.0.37U
Release 5.2.0.37U

Change-Id: I945f3fba0b63bdfd140cd37a901f2f0668511df1
CRs-Fixed: 774533
2017-08-09 16:07:53 -07:00
Yingying Tang
71961045fd qcacld-3.0: Disable LFR3.0 for SDX20
Since wifi chip do not supprot LFR3.0 on SDX20, disable LFR3.0
feature in Kbuild, and fix a compilation error.

CRs-Fixed: 2009403
Change-Id: I16eb3bd68d5564801be9cbcf9db1386cb0e3953b
2017-08-09 16:07:53 -07:00
snandini
39d40cfddd Release 5.2.0.37T
Release 5.2.0.37T

Change-Id: I4e2e47c85f554316a40ceb4075f6f7ef2eb4ecbb
CRs-Fixed: 774533
2017-08-09 15:00:10 -07:00
Peng Xu
5c68281c62 qcacld-3.0: Add interface info when sending P2P LO event
Add interface information when sending P2P listen offload stop
event to upper layer so that the event can be processed on the
correct interface.

Change-Id: I7aac52552e9277aff838d9bfef01201af48773c9
CRs-fixed: 2088732
2017-08-09 15:00:10 -07:00