Commit Graph

5808 Commits

Author SHA1 Message Date
Manjeet Singh
a5acc16871 qcacld-3.0: Add INI template for SSR feature
Add INI template for ssr feature for documentation.

CRs-Fixed: 1108400
Change-Id: I4c14205aab5d3ab353eb39cc0c04e18a2d6fe576
2017-07-30 14:00:47 -07:00
Nachiket Kukade
e4d8644dac qcacld-3.0: Populate the remaining addresses from tha wlan_mac.bin address
Currently if only one address is provided in wlan_mac.bin, it is updated
for interface wlan0. It will be copied to interface p2p0 if a specific
configuration is present. softap0 retains its mac address either generated
from serial number or given through Firmware ready event. This doesn't
guarentee a unique mac address to both these interfaces.
Regardless of configuration Both softap0 and p2p0 should have a unique
mac address with locally administered bit set.

Change-Id: I64299f5c2e2376c8dbdb26ea34ba0187d5d1f28d
CRs-Fixed: 2066086
2017-07-30 14:00:45 -07:00
snandini
28b8046e36 Release 5.2.0.36I
Release 5.2.0.36I

Change-Id: I64d8832831cb9fe0f2f10db1f954b12a2380ec77
CRs-Fixed: 774533
2017-07-30 13:02:32 -07:00
Nachiket Kukade
a48fd7791b qcacld-3.0: Do not BUG_ON during peer unmap timeout if FW is down
During peer detach, driver starts a timer to track unmap events
when the sta peer gets deleted. During this duration SSR occurs
and BUG_ON or cds recovery is triggered. This should only happen
in non-recoverable situation, so this scenario should be avoided.

Allow driver to recover from the SSR by checking FW_DOWN bit.

Change-Id: Ieca407e5c9c30f3c4716b7d158a903add46b8bd6
CRs-Fixed: 2078395
2017-07-30 13:02:31 -07:00
Sravan Kumar Kairam
4e82af92a9 qcacld-3.0: Fix 32 bit host arch wlan crash during load
Currently during IPA pipes connect host is passing size of each TX
completion ring size as 4 bytes instead of 8 bytes which is expected
by IPA driver. Reason is host passes size of each ring as size of
dma_addr_t which is 4 bytes for 32 bit host architecture where as
bus addresses are of 8 bytes on MAC and IPA. Fix this by passing the
size which is correct and expected by the IPA driver.

Change-Id: Ib081a3819d3a5e4f7ac61606d5ecb9aa5f3242c8
CRs-Fixed: 2037661
2017-07-30 13:02:29 -07:00
Ashish Kumar Dhanotiya
0fa8ee06b3 qcacld-3.0: Fix Uninitialized memory issue
Propagation from qcacld-2.0 to qcacld-3.0.

There is a possibility to read uninitialized memory within api
__wlan_hdd_cfg80211_testmode.
To resolve this issue, initilaize buffer hb_params with zero.

Change-Id: Ia8061610a8c35aa7290177c0dcd2c5c36d9fcb35
CRs-Fixed: 2075796
2017-07-30 13:02:28 -07:00
Manjeet Singh
3abd7300a5 qcacld-3.0: Accept gscan request only if netdev is up
The vendor command QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS
coming in netdev down state resulting in crash.

Add WIPHY_VENDOR_CMD_NEED_RUNNING flag to reject the vendor command
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS if netdev is down.

CRs-Fixed: 1109145
Change-Id: I007341a51ccdd1b5cf5b6e2319c8b71d4f26f9ce
2017-07-30 13:02:26 -07:00
Manjeet Singh
91b7bb8a20 qcacld-3.0: Enable QPOWER only for STA modes
Currently sending qpower to FW in softap mode causes device to crash as
qpower config is not supported.
Enable QPOWER config in STA and P2P-CLI modes.

Change-Id: Idb8b3ac79e6c93533b752ac42d6ab57bb0c86579
CRs-Fixed: 2003839
2017-07-30 13:02:24 -07:00
Padma, Santhosh Kumar
5f42892271 qcacld-3.0: Avoid buffer overflow of csr_wpa_oui array
In csr_validate_wep(), return value of csr_get_oui_index_from_cipher() is
used to fetch 'csr_wpa_oui' value. csr_get_oui_index_from_cipher() returns
0-14 but no.of rows of 'csr_wpa_oui' is 7.

Add changes to validate index value before accessing 'csr_wpa_oui' array.

Change-Id: I0cf16f4e8fb2c07a489991f20bc345e97b2450e0
CRs-Fixed: 2077599
2017-07-30 13:02:22 -07:00
Agrawal Ashish
b0aa075047 qcacld-3.0: Reduce log completion timer to 3 sec
Currently when driver send log flush command to firmware,
driver start timer of 10 sec.
Reducing this time to 3 sec as 10 is long timer.

Change-Id: I697fa6a4709fa0128595fb2b15493b1fa2b13b35
CRs-Fixed: 2037033
2017-07-30 13:02:20 -07:00
Agrawal Ashish
569ad261ac qcacld-3.0: Correct NSS in case of DBS hw mode
In case of DBS hw mode, NSS should be reduce by 1

Change-Id: I3d3f0dbd23a7336eb448628ade763668041a640d
CRs-Fixed: 2038087
2017-07-30 13:02:18 -07:00
Abhishek Singh
d8c3f10454 qcacld-3.0: Add support for ESP IE
The Estimated Service Parameters element is
used by a AP to provide information to another STA which
can then use the information as input to an algorithm to
generate an estimate of throughput between the two STAs.
The ESP Information List field contains from 1 to 4 ESP
Information fields(each field 24 bits), each corresponding
to an access category for which estimated service parameters
information is provided.

Change-Id: I4d299ffbf0700574c0b207893dbbfc4fd3911849
CRs-Fixed: 2079816
2017-07-30 13:02:16 -07:00
snandini
4c8108cb96 Release 5.2.0.36H
Release 5.2.0.36H

Change-Id: If97b96a71646d70908fd9e2c1d8cf904d27b3a23
CRs-Fixed: 774533
2017-07-30 12:01:54 -07:00
Nachiket Kukade
33c34e3228 qcacld-3.0: Update missing vht capabilities in wiphy before registering
Currently while registering wiphy, supported Beamformee STS Capability
and Number of Sounding Dimensions are not updated in the vhtcap field.
This results in hostapd failing to start if above two configurations
are enabled in the conf file.
Update missing vht capabilities in wiphy before registering.

Change-Id: I8db376fe1f14fd5b722e67a5889addf4c2fb7f28
CRs-Fixed: 2062520
2017-07-30 12:01:54 -07:00
SaidiReddy Yenuga
c0c34cfd5d qcacld-3.0: Fix uninitialised variables in HDD
In packet log header, element type_specific_data used uninitialised.

Initialise type_specific_data.

CRs-Fixed: 2015997
Change-Id: Ifa2bdc4c10528c8e9781249058e1767d64bec60e
2017-07-30 12:01:52 -07:00
Sreelakshmi Konamki
0ac62e88ee qcacld-3.0: Validate 'num_RICDataDesc' to avoid error logs
qcacld-2.0 to qcacld-3.0 propagation

In sir_convert_assoc_resp_frame2_struct(), 'pAssocRsp->ricPresent' is set to
true when 'num_RICDataDesc' is 0, this causes qdf_mem_malloc() to be called
with invalid length 0.

Add change to validate 'num_RICDataDesc' to avoid above issue.

Change-Id: If5e59477efa4df01ca216904645babf769b55c47
CRs-Fixed: 2078891
2017-07-30 12:01:50 -07:00
snandini
513038eee1 Release 5.2.0.36G
Release 5.2.0.36G

Change-Id: I5ffbde825e9d5fb5c3407cdad59ff09ffacab8da
CRs-Fixed: 774533
2017-07-30 11:00:17 -07:00
Abhishek Singh
f3cc07311a qcacld-3.0: Fix TLV length check issue in unpack tlv
In unpack tlv, length of tag and length fields are not considered
while checking for min length for the tag, this result into failure
in unpacking the TLV.

Fix it by including length of tag and length fields while checking
for min length.

Change-Id: Icf06b935a883e41426f5fcd1668ad8461b58349f
CRs-Fixed: 2070452
2017-07-30 11:00:16 -07:00
Abhishek Singh
4db8c1521c qcacld-3.0: Send OCE rssi reject BSSID list to firmware
Add support for rssi based assoc rejection from a bssid and
Try to connect to this bssid only after time interval indicated in
Assoc reject or when rssi has improved by margin indicated in Assoc
reject.

On connection send OCE rssi reject BSSID list to firmware so that
firmware will avoid connecting to these BSSID until RSSI improve or
delta interval has elapsed.

Change-Id: I792b2874ed25227bf5fd09d8051549da96db4364
CRs-Fixed: 2070452
2017-07-30 11:00:15 -07:00
Abhishek Singh
f3756fcb5c qcacld-3.0: Add support for rssi based assoc rejection during connect
Add support to handle rssi based assoc rejection from a bssid and
Try to connect to this bssid only after time interval indicated in
Assoc reject or when rssi has improved by margin indicated in Assoc
reject.

Change-Id: I6363bf5346ff8804611afbac3058819dc820092d
CRs-Fixed: 2070452
2017-07-30 11:00:12 -07:00
Agrawal Ashish
b08e721916 qcacld-3.0: Trigger pktlog as part of unusual disconnect
Trigger packet logs if deauth/Disconnect comes with reason code
other than eSIR_MAC_UNSPEC_FAILURE_REASON,
eSIR_MAC_DEAUTH_LEAVING_BSS_REASON,
eSIR_MAC_DISASSOC_LEAVING_BSS_REASON

Change-Id: I906abf4e4b7c7b9fb109fa1ead1afed15a9f5e81
CRs-Fixed: 2071173
2017-07-30 11:00:10 -07:00
Agrawal Ashish
87ec5d48c8 qcacld-3.0: Indicate HB failure, HO failure and no scan result as FATAL
In packet logs currently HB failure, HO failure and No scan results
are marked as Non Fatal and because of that, these failures are not captured
in packet logs.
Fix this by making these events as FATAL.

Change-Id: I6db2f3cd843b7f84081332f2385fbfb0a2992078
CRs-Fixed: 2061842
2017-07-30 11:00:09 -07:00
Nachiket Kukade
c34d4a3352 qcacld-3.0: Set timer expiry on queued HDD scan requests
In certain cases HDD fails to receive callbacks for the scan requests
queued to SME. Kernel may free up these scan requests due to timeout.
During driver shutdown and exit if scan done is performed on these
stale scan requests, kernel crash may occur.

Set a timer of 60 seconds on queued scan requests, after expiry BUG_ON
for debugging purposes.

Change-Id: I6db155b17a8a5ae87208ec84eaab221a53623a63
CRs-Fixed: 2070594
2017-07-30 11:00:06 -07:00
snandini
bb10c33fd5 Release 5.2.0.36F
Release 5.2.0.36F

Change-Id: Ib3f6f6ded04ed2bd8e8006bbaa88fd3b2b3ce931
CRs-Fixed: 774533
2017-07-30 10:04:17 -07:00
Ganesh Kondabattini
0dc1a6e77a qcacld-3.0: Handle error cases while registering frames
If registration of callback 'hdd_send_action_cnf_cb' fails with PE due
to some error case, then PE is not going give the ack confirmation
for action frames which can lead to in p2p connection failure.

CRs-Fixed: 2075708
Change-Id: Ia7b670f186975f5139e37e79230de56bc8ab868b
2017-07-30 10:04:17 -07:00
SaidiReddy Yenuga
28dc327cfe qcacld-3.0: Move log level to info if host fails to get valid STA-ID
During wlan disconnect before disabling tx queues, observed continuous
logs in ndo_start_xmit, because of invalid station ID, leading to WD bark.

Move log level to info from error, if driver fails to find valid station
ID while processing ndo_start_xmit.

CRs-Fixed: 2022473
Change-Id: I122219d22e2e19ddb3ca6aa60c38177f2a95ac43
2017-07-30 10:04:15 -07:00
Manjeet Singh
2f78506072 qcacld-3.0: Correct sme_set_5g_band_pref definition
sme_set_5g_band_pref is declared inside FEATURE_WLAN_ESE feature flag
by mistake which can cause a symbol undefined error if FEATURE_WLAN_ESE
is not declared.

Move sme_set_5g_band_pref outside of conditional block FEATURE_WLAN_ESE.

Change-Id: I80b045100b068d08873b136fdf676e99e36a57cd
CRs-Fixed: 2016629
2017-07-30 10:04:13 -07:00
snandini
515628d632 Release 5.2.0.36E
Release 5.2.0.36E

Change-Id: Ie45cc178e6eb55af1f5a7c47146d19e797b7e27a
CRs-Fixed: 774533
2017-07-30 09:09:13 -07:00
Manjeet Singh
a9cae43599 qcacld-3.0: Add support for band specific preference
Add support for 5Ghz network RSSI boost/penalty preference
based on ini values.

Change-Id: Ia3ae5dcc35b9a85fde5a609f8f27ff8b4bc35cec
CRs-fixed: 1085554
2017-07-30 09:09:12 -07:00
Agrawal Ashish
bafaff128b qcacld-3.0: Add INI and IOCTL template for SAP ACS feature
Add INI and IOCTL template for SAP ACS feature for documentation.

Change-Id: Id8088ee9b1f79c975d15d71c10aca1e05e35f82b
CRs-Fixed: 1105602
2017-07-30 09:09:10 -07:00
Agrawal Ashish
b114b6726b qcacld-3.0: Don't update MBO IEs twice
Driver should not send MBO IEs if MBO Ies come from supplicant.

Change-Id: I7ad27759ba2454465f3e204d207cb58eaf8804a9
CRs-Fixed: 2044567
2017-07-30 09:09:08 -07:00
snandini
0d0d4561a6 Release 5.2.0.36D
Release 5.2.0.36D

Change-Id: Iced93faab172c214b998611a9b92197d21e1fb71
CRs-Fixed: 774533
2017-07-30 07:50:18 -07:00
Abhishek Singh
c15f649aef qcacld-3.0: Remove vdev stop req from vdev resp queue if vdev stop fail
If during set link state, vdev stop fails, then the params pointer
is not removed from the vdev resp queue and set link state rsp is
called which will free this params pointer.

This leads to double free of the params memory when driver try to
remove the req params from vdev resp queue when cleanup vdev resp
queue is called.

To fix this remove vdev stop req from vdev resp queue if vdev stop
fails.

Change-Id: I1da763d2cc35c12c1b55a3c0057b893e9ef8d48f
CRs-Fixed: 2080189
2017-07-30 07:50:17 -07:00
Agrawal Ashish
e030f78aef qcacld-3.0: Add INI template for P2P feature
Add INI template for P2P feature for documentation.

Change-Id: I7d9fcb2272e0d105fd81bbeea9e387ce40ffa5b5
CRs-Fixed: 1116847
2017-07-30 07:50:15 -07:00
Agrawal Ashish
1fdcbb6a83 qcacld-3.0: Update negotiated maxTxPower in Assoc request
qcacld-2.0 to qcacld-3.0 propagation

On some channel, AP's tranmission power is less than
regulatory tx power as per db.txt. While sending Assoc request,
driver should populate negotiated power (min power of AP's tx power and
regulatory power for operating channel) in Assoc request.
This doesn't happen currently, fix it to ensure that
driver follow negotiated power.

Change-Id: I7755894b72e4f0f7ffc371abbbda5c75b2851b13
CRs-Fixed: 2011396
2017-07-30 07:50:13 -07:00
snandini
a355d03b0d Release 5.2.0.36C
Release 5.2.0.36C

Change-Id: Ie632ef27454c6b1b337a3b17099c24e55e3dd41c
CRs-Fixed: 774533
2017-07-29 23:39:01 -07:00
SaidiReddy Yenuga
c533202e26 qcacld-3.0: Validate NLA attr in hdd_extscan_epno_fill_network_list
NLA attribute
QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST
used without validation.

validate NLA attribute.

CRs-Fixed: 2025680
Change-Id: I4da7dbe44325b0ed6346b363b71b558250996f8c
2017-07-29 23:39:01 -07:00
snandini
a180e94ab8 Release 5.2.0.36B
Release 5.2.0.36B

Change-Id: Ifce41b2afb31e277ecb2e2dc7acb51f15f629145
CRs-Fixed: 774533
2017-07-27 16:59:55 -07:00
Mohit Khanna
78cb6bbbcc qcacld-3.0: drop excess rx pkts if peer not registered
Currently if the peer is not registered, we add packets to a cached_bufq
(within a peer). In case the peer is not registered for quite a long
time, or if the  vdev->rx pointer is somehow not set (when the vdev is
associated), this will lead to large number of nbufs from the FW being
added to this list. Eventually, we will run out of memory trying to add
nbufs to this list.
Keep an upper threshold on the number of elements in the cached_bufq.
Drop elements once the threshold is reached.

Change-Id: I02db9347addd77976f1d84897eee20d1e6f9c4ec
CRs-Fixed: 2026991
2017-07-27 16:59:52 -07:00
snandini
9700bb8c66 Release 5.2.0.36A
Release 5.2.0.36A

Change-Id: Id106ab6e42ec07347c8fc7675836533db725ae39
CRs-Fixed: 774533
2017-07-27 16:59:50 -07:00
Agrawal Ashish
df8e43c507 qcacld-3.0: Populate correct txpower in RRM Link Measurement Request
qcacld-2.0 to qcacld-3.0 propagation

Currently, driver doesn't consider tx power which was negotiated
at the time of connection for max tx power for RRM Link Measurement
Request.
Fix this by not allowing tx power more than pSessionEntry->maxTxPower.

Change-Id: Idebe6d11e05da0b3b8186e2c84ff8ad4ac124fdc
CRs-Fixed: 2021835
2017-07-27 16:59:47 -07:00
Agrawal Ashish
c416da60c5 qcacld-3.0: Trigger pktlog as part of hb failure/kickout event
When Driver does disconnect as part of heartbeat failure
or kickout event, trigger fatal event to capture pktlog.

Change-Id: I43a486afeccc4acd4be542357b803d492afde9c0
CRs-Fixed: 2030718
2017-07-27 16:59:44 -07:00
snandini
faa688cedd Release 5.2.0.36
Release 5.2.0.36

Change-Id: Ief8c442d2009503255cab2df47a350d24ec980e6
CRs-Fixed: 774533
2017-07-27 16:59:42 -07:00
Ashish Kumar Dhanotiya
0f2ef95a2a qcacld-3.0: Fix kernel checkpatch warnings in wlan_hdd_scan.c
Fix kernel checkpatch warnings in wlan_hdd_scan.c

Change-Id: Iadace9583f8396a11de64682b95e1f63073f67f6
CRs-Fixed: 2024274
2017-07-27 16:59:40 -07:00
Arunk Khandavalli
4e7afa658f qcacld-3.0: Fix kernel checkpatch warnings in wlan_hdd_hostapd.h
Fix kernel checkpatch warnings in wlan_hdd_hostapd.h

Change-Id: Ibdde25dcff04d2515f591c3d235c0990f00708a4
CRs-Fixed: 2024274
2017-07-27 16:59:36 -07:00
Arunk Khandavalli
15664e4e9a qcacld-3.0: Fix kernel checkpatch warnings in wlan_hdd_nan_datapath.c
Fix kernel checkpatch warnings in wlan_hdd_nan_datapath.c.

Change-Id: Iec8437dd8b5685a6889280f1f9858221e31a8fe8
CRs-Fixed: 2024274
2017-07-27 16:59:34 -07:00
Arunk Khandavalli
0ecf8c85ad qcacld-3.0: Fix kernel checkpatch warnings in wlan_hdd_debugfs.c
Fix kernel checkpatch warnings in wlan_hdd_debugfs.c

Change-Id: Ifdd7b43720f75dab627310b66a398c22cbe55963
CRs-Fixed: 2024274
2017-07-27 16:59:31 -07:00
Ashish Kumar Dhanotiya
cf11bae9c0 qcacld-3.0: Fix kernel checkpatch warnings in wlan_hdd_power.c
Fix kernel checkpatch warnings in wlan_hdd_power.c

Change-Id: I0a22c2c1ebc86ada69ff271cbd68f2166e08b541
CRs-Fixed: 2024274
2017-07-27 16:59:29 -07:00
Dustin Brown
8d8d9fe485 qcacld-3.0: Add enhanced multicast enable/disable APIs
Currently, a hard-coded enhanced multicast filter configuration is being
sent to firmware. Instead, create a set of enable/disable APIs, and
configure enhanced multicast filter based on advertised firmware
capability.

Change-Id: I488b4a921612e1081266be8831be098d755375f9
CRs-Fixed: 2078615
2017-07-27 16:59:26 -07:00
snandini
023e45ae64 Release 5.2.0.35Z
Release 5.2.0.35Z

Change-Id: I6d8ce847c3178f7e40cdc38583807c5629d65b7d
CRs-Fixed: 774533
2017-07-27 16:59:24 -07:00
Dustin Brown
c86d5368b0 qcacld-3.0: Do not wait for scan cancel during suspend
In the suspend path, the code waits for all active/pending scans to be
cancelled before continuing the suspend. Instead, for better power
savings, abort all active/pending scans during suspend and immediately
continue the suspend process.

Change-Id: I16a5429c00034fe58fb4c70a8dacda666ac54227
CRs-Fixed: 2073229
2017-07-27 16:59:22 -07:00
Krishna Kumaar Natarajan
9cc71e6783 qcacld-3.0: Fix incorrect processing of encrypted auth frame
Fix incorrect processing of encrypted auth frame by allocating
appropriate local buffer and using correct type for frame length.

Change-Id: I87d6f4c3c43dd332d5b1877ddf4b3b46a717468b
CRs-Fixed: 2081734
2017-07-27 16:59:20 -07:00
Sridhar Selvaraj
22943574b2 qcacld-3.0: Add bound check for numap to avoid integer overflow
Currently, numap is int and is assigned with a uint32 value from
fw which might lead to integer overflow. Also, when multiplying
the uint32 value with sizeof dest_ap could lead to int overflow
if the value of numap is close to uint32's maximum limit.

Fix/Modify numap to uint32 to be in sync with value from fw cmd.
Also add check to trim down numap value to max (10) if value is
greater than max (10).

Change-Id: I060f585c8c951807cd32b5eec75c1bad2e84a75b
CRs-Fixed: 2082665
2017-07-27 16:59:18 -07:00
snandini
349a52f0d3 Release 5.2.0.35Y
Release 5.2.0.35Y

Change-Id: Ifacbe655f70029f4665ad49592fcdb3b02e346fd
CRs-Fixed: 774533
2017-07-27 16:59:16 -07:00
Govind Singh
98b6255df6 qcacld-3.0: Remove QCA_WIFI_3_0_EMU flag from Kbuild
QCA_WIFI_3_0_EMU flag is introduced for IHelium emulation
platform, where wait/error timeouts are kept for larger values.
Remove this flag for production target.
Increase tx completion drain delay to 1sec from 500ms to avoid
unwanted suspend abort.

Change-Id: Ie0633b3a2bbc9e2237039311af7417952961aada
CRs-Fixed: 2047750
2017-07-27 16:59:14 -07:00
snandini
39ed073327 Release 5.2.0.35X
Release 5.2.0.35X

Change-Id: I79b53890ee6e84297e538c4a5300ac4c7ca9e7c1
CRs-Fixed: 774533
2017-07-27 16:59:12 -07:00
Liangwei Dong
ffd52d1f27 qcacld-3.0: Fix edca parameter issue
qcacld-2.0 to qcacld-3.0 propagation

Update EDCA parameter if the country is in European
Union based on new ETSI RED channel access parameters.

Change-Id: I08b1a0d7cd0ee1f6985cd0810c5c4c1108e582b4
CRs-Fixed: 2078985
2017-07-27 16:59:11 -07:00
Liangwei Dong
95d6c373bb qcacld-3.0: skip FW dump for SDIO SSR
Skip FW memory dump in SSR case for HL SDIO solution.
HL SDIO uses the diag read API to read by 4 bytes,
which is too slow to meet SSR time requirement.

Change-Id: Iacde90ab0ec84f29f3744bf4497ec8fd8517600a
CRs-Fixed: 2071329
2017-07-27 16:59:09 -07:00
snandini
3484fedf8f Release 5.2.0.35W
Release 5.2.0.35W

Change-Id: I603a95e59c24c6a50174c059224cfcd0c55fff07
CRs-Fixed: 774533
2017-07-27 16:59:07 -07:00
yeshwanth sriram guntuka
1413dfbf79 qcacld-3.0: Add ini to indicate OCE support to user space
Vendor features are used to indicate OCE support
from driver to user space which are set based on ini
params for STA and SAP.

Change-Id: I1b9039307d5477883a2fd23e972d20234908ee24
CRs-Fixed: 2031980
2017-07-27 16:59:06 -07:00
snandini
8b760bcacb Release 5.2.0.35V
Release 5.2.0.35V

Change-Id: Ibcfdeea8df5db3e43f777369a70be566e7490b0f
CRs-Fixed: 774533
2017-07-27 16:59:03 -07:00
Ravi Joshi
b398c85774 qcacld-3.0: Fix stability issue observed in set channel request
Fix array out-of-bounds access while populating the BSS rate set.
The issue was seen while populating the basic supported rate
and extended rate sets.

CRs-Fixed: 2081423
Change-Id: I8626399b7f9a04dc368daa582b6a09500a7ea015
2017-07-27 16:59:01 -07:00
Hanumanth Reddy Pothula
6310c77b23 qcacld-3.0: Process pno ioctl appropriately
propagation from qcacld-2.0 to qcacld-3.0.

While processing setpno ioctl, input arguments are not validated
and also while parsing arguments, there is a possibility of Host
accessing memory beyond memory allocated as there is no check
whether is Host is accessing valid memory or not.
Validate input arguments and make sure Host won't access invalid
memory, while processing setpno ioctl.

Change-Id: Ica9ea56283d55282cff3ccd349e4bc1c08b80e70
CRs-Fixed: 1097868
2017-07-27 16:58:59 -07:00
Govind Singh
9ad8414613 qcacld-3.0: Prevent rx hashlist access after rx hash deinit
Rx hash deinit sets hash_table to NULL, at the same time
there can be active tasklet context accessing the rx hash list.
Prevent rx hashlist access after rx hash deinit and set the netbuf
to NULL once netbuff is popped out of the list.

Change-Id: I4e30dd69ece33c3cc768842274d5307c0bf29a37
CRs-Fixed: 2049121
2017-07-27 16:58:57 -07:00
snandini
66d7b4731e Release 5.2.0.35U
Release 5.2.0.35U

Change-Id: I8f06b2306ec1c040292ba9b685a194f4c9d340da
CRs-Fixed: 774533
2017-07-27 16:58:55 -07:00
Hanumanth Reddy Pothula
ffc2d4866e qcacld-3.0: Rename ini param name sap_restart_on_ch_avoid
sap_restart_on_ch_avoid ini parameter holds good for both SAP and GO.
So to make it generic, rename to ignore_restart_on_chan_avoid_event.

Change-Id: Ic68014a71b36e00c268da50528bf5e14fd87d007
CRs-Fixed: 2027436
2017-07-27 16:58:53 -07:00
snandini
be61cdab89 Release 5.2.0.35T
Release 5.2.0.35T

Change-Id: Ifc1c1f8425c6ea199e141fe8e2b07dc34ce22d7c
CRs-Fixed: 774533
2017-07-27 16:58:52 -07:00
Ganesh Kondabattini
acaf8a9c4c qcacld-3.0: Change the min and default values of gTDLSEnableDeferTime
Driver is disabling the tdls for 5s from the last p2p-listen request
received. This is leading to tdls connection failure even after p2p
find has been stopped.

So reducing the min and default timer values 500ms and 2s respectively.

CRs-Fixed: 2078933
Change-Id: Id1ab3945d029de8154aede403b354aec99f4cd79
2017-07-27 16:58:50 -07:00
snandini
2d6a2272a6 Release 5.2.0.35S
Release 5.2.0.35S

Change-Id: I6fc460d4791e6af115f1a0fc0284dbacae3cf935
CRs-Fixed: 774533
2017-07-27 16:58:49 -07:00
Mohit Khanna
c19888f4c5 qcacld-3.0: Fix compilation error due to htt_display_rx_buf_debug
The function is not present as inline in the non debug build, which will
cause a compilation error.
Fix issue by having an empty inline function in the header file.
Some counters need to be defined outside of DEBUG_RX_RING_BUFFER.

Change-Id: I755616aa55c2f38bca017137e91cc469de7fbdcf
CRs-Fixed: 2004927
2017-07-27 16:58:47 -07:00
snandini
7e89acef2b Release 5.2.0.35R
Release 5.2.0.35R

Change-Id: I57b4e114c4ce1500b63e5b46a35286bd71151eb2
CRs-Fixed: 774533
2017-07-27 16:58:45 -07:00
Arif Hussain
0c81692edf qcacld-3.0: Fix null pointer access in lim_send_assoc_rsp_mgmt_frame
Make sure sta is not null before dereferencing in
lim_send_assoc_rsp_mgmt_frame function.

Change-Id: Ifb7c4a3b1e02297906bfa1b7908c27929682cf28
CRs-Fixed: 2030304
2017-07-27 16:58:43 -07:00
Linux Build Service Account
5833b7c944 Merge "qcacld-3.0: Add ecsa capability record" 2017-07-26 15:44:22 -07:00
CNSS_WLAN Service
6bdac3e6bf Merge "Release 5.2.0.35Q" into wlan-cld3.driver.lnx.2.0-dev 2017-07-26 14:02:56 -07:00
CNSS_WLAN Service
246b8faa88 Merge "qcacld-3.0: Set the driver_type in the mac during the mac_open" into wlan-cld3.driver.lnx.2.0-dev 2017-07-26 14:02:54 -07:00
CNSS_WLAN Service
8c451f8dda Merge "qcacld-3.0: Assign listen interval based on INI setting" into wlan-cld3.driver.lnx.2.0-dev 2017-07-26 14:02:52 -07:00
CNSS_WLAN Service
1499fbb8af Merge "Release 5.2.0.35P" into wlan-cld3.driver.lnx.2.0-dev 2017-07-26 00:38:57 -07:00
CNSS_WLAN Service
cb71bc09ed Merge "qcacld-3.0: Set final bmiss count to 20 from 10" into wlan-cld3.driver.lnx.2.0-dev 2017-07-26 00:38:56 -07:00
CNSS_WLAN Service
db56436b78 Merge changes I98019171,I69fb67a4 into wlan-cld3.driver.lnx.2.0-dev
* changes:
  Release 5.2.0.35O
  qcacld-3.0: Fix peer poison overwritten issue
2017-07-25 21:20:46 -07:00
Linux Build Service Account
75463cca73 Merge "qcacld-3.0: Add phymode parameter in hdd_chan_change_notify" 2017-07-25 21:17:11 -07:00
gaolez
7bb1e74744 qcacld-3.0: Add ecsa capability record
qcacld-2.0 to qcacld-3.0 propagation

Add eCSA capability record of STAs which associated to SAP.

Change-Id: I1d7892bb1dc4e490a587e8372a4bdc7f419e8b36
CRs-Fixed: 1094958
2017-07-25 15:44:06 -07:00
snandini
1bcfbdec22 Release 5.2.0.35Q
Release 5.2.0.35Q

Change-Id: Ifb82fa5436ff67cc1fa79a83181c09def6ff87ad
CRs-Fixed: 774533
2017-07-25 14:23:59 -07:00
Arunk Khandavalli
66f9169b50 qcacld-3.0: Set the driver_type in the mac during the mac_open
Presently during the mac open the globalmac context is memset to
zero and the based on the driver_type pe sessions will be created.

During the switch from the FTM to mission mode, pe checks the
driver mode from the mac context and tries to access the invalid
lim sessions which are not created for FTM mode.

To mitigate the issue set the driver_type in the mac context during
mac_open

CRs-Fixed: 2017035
Change-Id: Iddefd2f74afb71197c3830a51f107d86736745f1
2017-07-25 14:23:59 -07:00
Krunal Soni
b3f4542d3e qcacld-3.0: Assign listen interval based on INI setting
Current driver is assigning listening interval based on beacon interval
value which is incorrect.

Listen interval should be taken based on INI value.

CRs-Fixed: 2080042
Change-Id: I0ad52a8042589604d51fc632fe3ce31547a26628
2017-07-25 14:23:57 -07:00
snandini
1f389a9d65 Release 5.2.0.35P
Release 5.2.0.35P

Change-Id: I311005a540671406894ea8b30adf4f1605a4ef3c
CRs-Fixed: 774533
2017-07-25 09:53:29 -07:00
CNSS_WLAN Service
bc38804145 Merge "qcacld-3.0: Correct dev name in logs" into wlan-cld3.driver.lnx.2.0-dev 2017-07-25 09:07:48 -07:00
CNSS_WLAN Service
e3889e3e28 Merge "Release 5.2.0.35N" into wlan-cld3.driver.lnx.2.0-dev 2017-07-25 09:07:47 -07:00
CNSS_WLAN Service
0a40c2ac36 Merge "qcacld-3.0: Add new ini param for min rest time during roaming scan" into wlan-cld3.driver.lnx.2.0-dev 2017-07-25 09:07:46 -07:00
Mukul Sharma
9e8395ec44 qcacld-3.0: Set final bmiss count to 20 from 10
Due to multiple beacon miss issues observed in firmware,
Host is changing final bmiss count to 20 from 10.
Hence firmware can receive beacon in noisy environment.

Change-Id: I87e4a6eaec016f36ca22a057e0d9812c0b8696ff
CRs-Fixed: 2082088
2017-07-25 18:02:53 +05:30
snandini
b0cf09f839 Release 5.2.0.35O
Release 5.2.0.35O

Change-Id: I98019171133cdd8c0f861f164ae4bfc5054b02c0
CRs-Fixed: 774533
2017-07-25 03:45:27 -07:00
Mohit Khanna
babadb8bee qcacld-3.0: Fix peer poison overwritten issue
In the existing impementation, once wma_is_pkt_drop_candidate gets a
peer from ol_txrx_find_peer_by_addr, the peer can be deleted in the
SOFTIRQ path from the unmap handler. This would make the peer pointer
'stale' resulting in access to already freed memory.

- Use standard API OL_TXRX_PEER_UNREF_DELETE to decrement peer->ref_cnt
  instead of directly referencing it.
- Add a new API - ol_txrx_find_peer_by_addr_inc_ref which does not
  decrement the peer->ref_cnt until the usage of peer in the caller
  function is finished. The existing API ol_txrx_find_peer_by_addr
  can be replaced by the new API as and when the issues are seen.

Sample usage:
    {
	peer = ol_txrx_find_peer_by_addr_inc_ref
	/* This API gets the peer and increments its ref_cnt */
	...
	...
	/* Once peer usage is done */
	OL_TXRX_PEER_UNREF_DELETE(peer);
	/*
	 * This API deletes the reference to the peer or the peer itself
	 * if the peer->ref_cnt is 0. This way we no longer depend on
	 * peer unmaps to delete the peer.
	 */

    }

Change-Id: I69fb67a4b4c9e26344d2ed1a72c383be7ac62414
CRs-Fixed: 2008583
2017-07-25 03:45:26 -07:00
bings
58ce86229c qcacld-3.0: Add phymode parameter in hdd_chan_change_notify
Information in struct ch_params_s are the same for 11g and
11n ht20, so phymode is still needed to distinguish them.

Change-Id: I5ddfc011b4fd3b11c975f8b2df3a270e8141e622
CRs-Fixed: 2073580
2017-07-25 03:45:24 -07:00
Mahesh Kumar Kalikot Veetil
80dda9aab6 qcacld-3.0: Correct dev name in logs
Fix device name in the log. Current log is,
"hdd_open_adapter: xxxx: wlan%d interface created. iftype: 0."
Expected log is,
"hdd_open_adapter: xxxx: wlan0 interface created. iftype: 0."

CRS-Fixed: 2078530
Change-Id: Ida38e1e2f26d0a86382550409317ec36bd68f071
2017-07-25 03:45:22 -07:00
snandini
1659a55686 Release 5.2.0.35N
Release 5.2.0.35N

Change-Id: Ic6a619085ce04040fd982af50e30902e088a04fc
CRs-Fixed: 774533
2017-07-24 10:52:47 -07:00
Sridhar Selvaraj
1b2330ccb8 qcacld-3.0: Add new ini param for min rest time during roaming scan
Currently both min and max rest time use the same ini param
gNeighborScanTimerPeriod.

Add a new ini param gRoamRestTimeMin for min rest time
during channel scan.

Change-Id: Ifbb0fcc736e81b292639c6f2ad3119b451bec4f2
CRs-Fixed: 2060095
2017-07-24 10:52:47 -07:00
CNSS_WLAN Service
eaad0cfbad Merge "Release 5.2.0.35M" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:27 -07:00
CNSS_WLAN Service
d3f7c9d156 Merge "qcacld-3.0: Igonre HT BW change if channel switch is in progress" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:26 -07:00
CNSS_WLAN Service
826a89e442 Merge "Release 5.2.0.35L" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:25 -07:00
CNSS_WLAN Service
141b27102b Merge "qcacld-3.0: Add a flag check to remove the cmd in find req" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:24 -07:00
CNSS_WLAN Service
3a2dc8d9cf Merge "qcacld-3.0: Disable 160MHz SGI if SGI 40MHz INI cfg is disabled" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:23 -07:00
CNSS_WLAN Service
710b02add8 Merge "qcacld-3.0: Send fail response to del_self_sta req without del_bss" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:22 -07:00
CNSS_WLAN Service
73fa87ea33 Merge "Release 5.2.0.35K" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:20 -07:00
CNSS_WLAN Service
6880b9ebcb Merge "qcacld-3.0: Fix the incorrect error check in scan function" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:19 -07:00
CNSS_WLAN Service
4944b0609c Merge "Release 5.2.0.35J" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:18 -07:00
CNSS_WLAN Service
241eb37910 Merge "qcacld-3.0: Add vdev validity check before sending vdev set param" into wlan-cld3.driver.lnx.2.0-dev 2017-07-23 18:02:17 -07:00
snandini
a194f56ca3 Release 5.2.0.35M
Release 5.2.0.35M

Change-Id: Ibaf93f36505a5c4dd4f88e3449e333f065e9a365
CRs-Fixed: 774533
2017-07-21 23:25:59 -07:00
Kiran Kumar Lokere
f9dc79123c qcacld-3.0: Igonre HT BW change if channel switch is in progress
If channel switch is in progress and if the HT IE received in
beacon has the BW change then do not send the bandwidth update
request to FW. After the channel switch response is received and
beacon has different BW bandwidth a new BW update request will
be sent to FW.

Change-Id: Id41bd0523f821d2b81e132318230492fda79f32a
CRs-Fixed: 2068906
2017-07-21 23:25:58 -07:00
snandini
8251886f0c Release 5.2.0.35L
Release 5.2.0.35L

Change-Id: If8248d64505c19c071702a7f8c699aaa323bfc13
CRs-Fixed: 774533
2017-07-21 22:25:34 -07:00
Kiran Kumar Lokere
208041661a qcacld-3.0: Add a flag check to remove the cmd in find req
Add a flag to wma_find_vdev_req api to remove the wma request
message with conditional check.

Change-Id: Ia1166659e593312a2ebf34df5eba02fb23fc335a
CRs-Fixed: 2077738
2017-07-21 22:25:34 -07:00
Kiran Kumar Lokere
e25d3fce79 qcacld-3.0: Disable 160MHz SGI if SGI 40MHz INI cfg is disabled
Disable SGI in 160MHz mode if short GI for 40MHz is disabled in
the INI connfiguration

Change-Id: I6a0c7c7734d4c926dc29103207afb45a3eb1da94
CRs-Fixed: 2073269
2017-07-21 22:25:33 -07:00
Kiran Kumar Lokere
3557765ca9 qcacld-3.0: Send fail response to del_self_sta req without del_bss
Send the failure response for delete self sta request to SME if
the delete bss request is not present or being processed.

Change-Id: I8af9c96ee2027faf256563f800159070146770c8
CRs-Fixed: 2076336
2017-07-21 22:25:31 -07:00
snandini
17f925c415 Release 5.2.0.35K
Release 5.2.0.35K

Change-Id: I7f32f00743f40fae9c20ae437667256ce980bd6f
CRs-Fixed: 774533
2017-07-21 21:20:37 -07:00
Kabilan Kannan
703fc299e9 qcacld-3.0: Fix the incorrect error check in scan function
Due to incorrect error check wlan scan abort request
consistently fails.
Fix the error check statement.

Change-Id: I342f96596daaad9e6668059a7085dd215ff5241f
CRs-Fixed: 2049396
2017-07-21 21:20:37 -07:00
snandini
76174efb05 Release 5.2.0.35J
Release 5.2.0.35J

Change-Id: Ie1f0f800c615786f7d47476b167eac734484bc37
CRs-Fixed: 774533
2017-07-21 16:00:44 -07:00
CNSS_WLAN Service
dfbf506b15 Merge changes I87205d59,I91332da9 into wlan-cld3.driver.lnx.2.0-dev
* changes:
  qcacld-3.0: fix a potential spinlock lockup issue
  qcacld-3.0: add device attribute 'tsf'
2017-07-20 20:47:16 -07:00
Linux Build Service Account
ec1af2c219 Merge "qcacld-3.0: time stamp msdu with precise rx/tx time" 2017-07-20 20:44:49 -07:00
Linux Build Service Account
6c1da11513 Merge "Release 5.2.0.35I" 2017-07-19 22:47:25 -07:00
Linux Build Service Account
4ad62144be Merge "qcacld-3.0: Mask sdio host controller interrupts in shutdown" 2017-07-19 21:51:48 -07:00
CNSS_WLAN Service
f451bb81f4 Merge "Release 5.2.0.34Z" into wlan-cld3.driver.lnx.2.0-dev 2017-07-19 20:21:45 -07:00
CNSS_WLAN Service
91d5689c2c Merge "qcacld-3.0: Do RX packet aggregation for every 16th packet" into wlan-cld3.driver.lnx.2.0-dev 2017-07-19 20:21:44 -07:00
CNSS_WLAN Service
91281c75af Merge "Release 5.2.0.34Y" into wlan-cld3.driver.lnx.2.0-dev 2017-07-19 20:21:43 -07:00
CNSS_WLAN Service
8488750adc Merge "qcacld-3.0: Add changes for Napier flow control" into wlan-cld3.driver.lnx.2.0-dev 2017-07-19 20:21:41 -07:00
Rajeev Kumar
d9a43cfbe4 qcacld-3.0: Add vdev validity check before sending vdev set param
If vdev is deleted FW can assert if host sends any vdev set param command.
Add vdev validity sanity check and reject vdev param set request after
vdev is deleted.

Change-Id: I65c303ef2e2a941cb2629f3fbc0862acf6e306d3
CRs-Fixed: 2079273
2017-07-19 16:28:43 -07:00
snandini
b884999812 Release 5.2.0.35I
Release 5.2.0.35I

Change-Id: Icb85ac525b37c63a82310a292bf7fd936ccae95b
CRs-Fixed: 774533
2017-07-18 15:49:39 -07:00
Dustin Brown
fe7aa8780a qcacld-3.0: Add gPreventLinkDown ini item
Add a configuration item, gPreventLinkDown, to disable putting the bus
link to sleep during suspend/resume.

Change-Id: Id52c6319cafaef60e6f4e562010615361eb831cd
CRs-Fixed: 2066718
2017-07-18 15:49:39 -07:00
Tushnim Bhattacharyya
825b0f7ac6 qcacld-3.0: preferred_rx_streams to reflect correct NSS value
preferred_rx_streams to reflect the NSS value with which association to the
AP happened in STA mode.

Change-Id: Ia2ecfb7ba055c3644410b0ff908812f0f94ba4c7
CRs-Fixed: 2077040
2017-07-18 15:49:37 -07:00
snandini
8c76505521 Release 5.2.0.35H
Release 5.2.0.35H

Change-Id: I5177a1bc0b6acd0787e913d8307f9b0fdb5283f9
CRs-Fixed: 774533
2017-07-18 07:43:32 -07:00
Jiachao Wu
08719b0c38 qcacld-3.0: iwpriv set_txchainmask 0 shouldn't change mode
If user set invalid txchainmask, driver shouldn't change the value.

Change-Id: Ifd600e439e967845bfa874220a3e1508bc26a3ba
CRs-Fixed: 2070620
2017-07-18 07:43:32 -07:00
snandini
697888b35a Release 5.2.0.35G
Release 5.2.0.35G

Change-Id: If59b328a5c5510b1dc6847db2a6e8aed174d2e59
CRs-Fixed: 774533
2017-07-18 05:54:26 -07:00
Will Huang
558f8085c4 qcacld-3.0: Add support of request peer stats info(part 2)
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 LIM/SME/SAP layer, provide SME APIs/callbacks
to HDD layer to get SAP's peer station tx/rx related information,
fill these information from wma layer get-peer-stat-info APIs and
peer station's association request frame. It also fixed function
csr_send_assoc_ind_to_upper_layer_cnf_msg when copy information
between different structures and using offset style.

Change-Id: Icb1aaa126663af7eaedd1c4db86ca25c40ce6ee9
CRs-Fixed: 2051628
2017-07-18 05:54:26 -07:00
Selvaraj, Sridhar
57ce4dfde2 qcacld-3.0: Add ini params to avoid roam ping pong
In roaming scenario, to avoid ping pong with bad AP’s around, fw
blacklist certain Ap’s based on timestamps and penalize certain
AP’s of the same channel so they won’t be selected and back and
forth roaming could be avoided. This change adds the following
INI parametres to configure the parametres of this fw feature.

1) groam_disallow_duration    - Amount of time LCA[Last Connected AP]
                                will be disallowed before it can be a
                                roaming candidate again.
2) grssi_channel_penalization - RSSI to be penalized if
                                candidate(s) are found in the same
                                channel as disallowed AP's.
3) groam_num_disallowed_aps   - number of AP's the target should
                                maintain in its LCA list.

Change-Id: I41cb36caf1b42caeb2bf77846bd0279eb43d2018
CRs-Fixed: 2054188
2017-07-18 05:54:24 -07:00
Sreelakshmi Konamki
2972b6e3cb qcacld-3.0: Do not remove addts/delts command in csr_roam_sync_callback
Currently addts and delts commands are removed as part of
csr_roam_sync_callback. After successful roaming add_tspec of
old connection is not processed in SME (entry of addts command is NULL
in smeCmdActiveList). As there is no active add tspec in SME,
VO data is downgraded to BE.

To fix above issue, do not remove addts/delts commands from SME queue and
in PE layer do the error handling for addts to send resp for all
failure cases.

Change-Id: Ibc7364d188c3002dd8067738f6bcc8fee2af2126
CRs-Fixed: 2076713
2017-07-18 05:54:23 -07:00
snandini
7810c77082 Release 5.2.0.35F
Release 5.2.0.35F

Change-Id: I1bb3517717e520a09a8ea4faeb422d984f30e719
CRs-Fixed: 774533
2017-07-18 03:49:25 -07:00
Ashish Kumar Dhanotiya
41a5a77621 qcacld-3.0: Fix out of bound memory access
There is a possibility of OOB memory access within api
wlan_hdd_qcmbr_command.
To resolve this issue add appropriate buffer length check before
using the buffer.

Change-Id: I3bc0bb74e07fbf4b5c1f2163c9fb0b80d8839d0d
CRs-Fixed: 2075278
2017-07-18 03:49:25 -07:00
snandini
2a54dc402b Release 5.2.0.35E
Release 5.2.0.35E

Change-Id: I4cbd0656dcea0068e181b06eb648e696e2a87089
CRs-Fixed: 774533
2017-07-18 01:58:53 -07:00
Rajeev Kumar
f46083e0e5 qcacld-3.0: Move CLD components outside core folder
Core is legacy module folder in CLD. Hence move MCL specific
components folder outside core.

Change-Id: Iba3f9fdb06ad10dc4a5b19f3ff1ffa23f7372605
CRs-Fixed: 2077963
2017-07-18 01:58:53 -07:00
snandini
5c84bf7916 Release 5.2.0.35D
Release 5.2.0.35D

Change-Id: I3c91be28c44c18af7ac4ded98397605311356626
CRs-Fixed: 774533
2017-07-17 21:48:06 -07:00
Zhang Qian
303ebe9dbf qcacld-3.0: Add mac counters for per-antenna TX/RX stats
qcacld-2.0 to qcacld-3.0 propagation

New MAC counters are added to count MPDUs received and transferred
on each antenna.

Change-Id: Ia7fbf7642922f006882619848459192dcfca3c40
CRs-Fixed: 2043156
2017-07-17 21:48:05 -07:00
Lin Bai
ceb4d64b3e qcacld-3.0: Fix fragile code in dphInitStaState
qcacld-2.0 to qcacld-3.0 propagation

In dphInitStaState function, it will implicitly assume that, the last
member of structure tDphHashNode is *next* pointer, which is fragile and
risky.

Save the *next* pointer in local variant and restore after whole
structure zeroed.
This will need additional CPU ticks but eliminate the risk.

CRs-Fixed: 2055505
Change-Id: I6baf3eddea965eda4e7f7ca88fef54709964febc
2017-07-17 21:48:03 -07:00
Houston Hoffman
77bf407f75 qcacld-3.0: free memory in csr_get_snr error path
Free allocated message container when csr_roam_get_session_id_from_bssid
fails.

Change-Id: I088d3866d2c8052ef65ce5a719dd6c478d98e293
CRs-Fixed: 2077460
2017-07-17 21:48:01 -07:00
snandini
4aa3e5aac4 Release 5.2.0.35C
Release 5.2.0.35C

Change-Id: Ic7f6c518fd011ddeee896d070c1b08e79a5b5925
CRs-Fixed: 774533
2017-07-17 20:55:27 -07:00
Srinivas Girigowda
fc8b4ffc0f qcacld-3.0: Move the logs to appropriate log levels
Move the logs to appropriate log levels.

Change-Id: I184a8a58541daa1b29f042db9bcbeadc254b5c38
CRs-Fixed: 2063642
2017-07-17 20:55:27 -07:00
Srinivas Girigowda
11c28e0022 qcacld-3.0: Replace NL80211_BAND_2GHZ with HDD_NL80211_BAND_2GHZ
warning: implicit conversion from enumeration type 'enum
nl80211_band' to different enumeration type 'enum ieee80211_band'
[-Wenum-conversion]

Replace NL80211_BAND_2GHZ with HDD_NL80211_BAND_2GHZ and
NL80211_BAND_5GHZ with HDD_NL80211_BAND_5GHZ.

Change-Id: I15a905a599b87fc1a876c5f1b7bd6d69b2ba0f15
CRs-Fixed: 2055487
2017-07-17 20:55:22 -07:00
Srinivas Girigowda
38f1deda4e qcacld-3.0: Fix clang warnings implicit enum nl80211_band
warning: implicit conversion from enumeration type 'enum
nl80211_band' to different enumeration type 'enum ieee80211_band'
[-Wenum-conversion]

Change-Id: I084e015626611ae90be00b11a599ae82f9bf6f60
CRs-Fixed: 2055487
2017-07-17 20:55:20 -07:00
Srinivas Girigowda
d3b31e205a qcacld-3.0: Fix clang warnings in LIM
qcacld-3.0/core/mac/src/pe/lim/lim_process_mlm_req_messages.c:487:10:
warning: implicit conversion from enumeration type 'enum eSirRetStatus'
to different enumeration type 'tSirResultCodes'
(aka 'enum eSirResultCodes') [-Wenum-conversion]

qcacld-3.0/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c:459:37:
warning: implicit conversion from enumeration type 'tLimSmeStates'
(aka 'enum eLimSmeStates') to different enumeration type 'tLimMlmStates'
(aka 'enum eLimMlmStates') [-Wenum-conversion].

Change-Id: I649618105b220d69c8b79dcae0983ae6d75746c0
CRs-Fixed: 2055487
2017-07-17 20:55:19 -07:00
Srinivas Girigowda
7f8cb144b8 qcacld-3.0: Fix clang warnings implicit conversion from enum tLimSmeStates
warning: implicit conversion from enumeration type 'tLimSmeStates
(aka 'enum eLimSmeStates') to different enumeration type 'tLimMlmStates'
(aka 'enum eLimMlmStates') [-Wenum-conversion].

Change-Id: I659776ce18feaf1e566d6c9ff5cbd6d348016d65
CRs-Fixed: 2055487
2017-07-17 20:55:17 -07:00
snandini
d0072c5516 Release 5.2.0.35B
Release 5.2.0.35B

Change-Id: I9e5594851d10f1fda5274f6a638b5d6a7f7494d6
CRs-Fixed: 774533
2017-07-17 20:05:16 -07:00
Varun Reddy Yeturu
9e0032c720 qcacld-3.0: Use API to change the connection state
Use the API hdd_conn_set_connection_state to change the
HDD connection state

Change-Id: I3635cec841a3788c9576e8e49ab859e21d89e32d
CRs-Fixed: 2076017
2017-07-17 20:05:14 -07:00
snandini
9c9e34211d Release 5.2.0.35A
Release 5.2.0.35A

Change-Id: I46f1e1103bdaea51e6724ba4a1eb1b3389ce2a90
CRs-Fixed: 774533
2017-07-17 18:29:15 -07:00
Will Huang
48701e295f qcacld-3.0: Move short name redefinitions from qca_vendor.h
These short name redefinitions should just be used in source file for
convenience, should not exist in qca_vendor.h where interfaces are
defined there.

To avoid checkin two way dependencies, add ifndef/define in source file
and first checkin qcacmn head file which remove these redefinitions,
then remove these ifndef/define from source file in another change.

Change-Id: I5318de88b569085f26212e960b79048e8a2481a8
CRs-Fixed: 2076521
2017-07-17 18:29:15 -07:00