Commit Graph

6133 Commits

Author SHA1 Message Date
snandini
137169c07a Release 5.2.0.39V
Release 5.2.0.39V

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Change-Id: I93d382b62056decad2ee2462ac42e6f6924221f1
CRs-Fixed: 774533
2017-08-30 10:41:18 -07:00
Jeff Johnson
89798aa132 qcacld-3.0: Replace typedef hdd_wapi_info_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_wapi_info_t typedef does
not meet any of those criteria, so replace it with a well named
struct.

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

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

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

Change-Id: I8ae32c307f241525a7d74467328d9d40dc805053
CRs-Fixed: 2077011
2017-08-30 10:41:01 -07:00
Jeff Johnson
3758894ae8 qcacld-3.0: Replace typedef hdd_scaninfo_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_scaninfo_t typedef does not
meet any of those criteria, so replace it with a well named struct.

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

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

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

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

Use separate variables to save last ssid and auth info.

This is to fix issues of change I5b64d9942a54d35eac0f08b4d8fbed9d1d66a504.

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

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

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

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

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

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

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

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

Change-Id: Ib60139fd94a4fb88c92a7f8aaf886ae9d3ca4c75
CRs-Fixed: 2089149
2017-08-23 22:07:30 -07:00
gaolez
76d2a16f03 qcacld-3.0: Channel hopping for 2_4G and 5G band
qcacld-2.0 to qcacld-3.0 propagation

Allow device switch to a different channel if the current channel is
congested, using the 11h channel switch announcement.

Change-Id: I1766785017e43f17cc800039b383ee5dabcd6ea5
CRs-Fixed: 2082632
2017-08-22 20:57:57 -07:00
Arif Hussain
f63f7a3dd8 qcacld-3.0: Add dummy event handler function for WMI_PHYERR_EVENTID
Currently there are no phyerror event handler either in cmn or cld code,
idea was to implement all DFS code in cmn code. Before enabling event
handler in cmn code need more testing on all the platform which are using
cmn project to make sure not to break radar detection. Until then add dummy
phyerror event handler in cld project. This is mainly to prevent crash due
to watchdog bark because of unhandled event console logs.

Change-Id: I37d652537dec9f6e2de7fd0abf56d4058697313e
CRs-Fixed: 2097256
2017-08-22 17:01:48 -07:00
snandini
2aa3f24cc2 Release 5.2.0.39I
Release 5.2.0.39I

Change-Id: Ia59370dd6c91ba4ccedefafbfeecd7aabca44242
CRs-Fixed: 774533
2017-08-22 16:05:38 -07:00
Tushnim Bhattacharyya
49ed8ab90b qcacld-3.0: Expand the use of gDualMacFeatureDisable INI
Few OEMs want DBS to be disabled for connections while
keeping DBS scan enabled.
Few OEMs want advance DBS scan features to be disabled.
Provide different value to gDualMacFeatureDisable INI item
to achive the goal.

Change-Id: Iddf5df23575a2f907bb8dbd0c37e03ff4ebbdea8
CRs-Fixed: 2068779
2017-08-22 16:05:38 -07:00
Rajeev Kumar
db60f16253 qcacld-3.0: Register host trigerred self recovery callback from cds
Register host trigerred self recovery callback from cds such that
self recovery can be trigerred from everwhere.

Change-Id: I67f529dd1585cff2c444412321f54a0aedcf6b97
CRs-Fixed: 2083092
2017-08-22 16:05:33 -07:00
Rajeev Kumar
900160260d qcacld-3.0: Do not enable BPF offload if vdev is not up
Add sanity check to reject BPF enable request if vdev is not up.

Change-Id: Id5c35811308b0dd6e360fd9d0e0262c35b63929f
CRs-Fixed: 2097134
2017-08-22 15:00:38 -07:00
snandini
b27deb3ec8 Release 5.2.0.39H
Release 5.2.0.39H

Change-Id: Iddad87b3b16dbf189413e4d0c8ddc738e7dcdb53
CRs-Fixed: 774533
2017-08-22 13:50:29 -07:00
Arun Khandavalli
ba479c4ca8 qcacld-3.0: Dont close the CDS modules in FTM mode
Driver in FTM mode can operate even if the wlan interface isn't up.
If an user or an application tries to do IFF_UP and then IFF_DOWN
on the wlan0 interface, interface change timer kicks-in and starts
closing the modules. After which every command FTM commands
starts failing since the CDS modules are closed.

In order to mitigate don't run the interface change timer if
the driver mode is FTM.

Change-Id: I6b65a9956e33aeb619d2f1748f369c00ca75acab
CRs-Fixed: 2078323
2017-08-22 13:50:26 -07:00
snandini
32321247b8 Release 5.2.0.39G
Release 5.2.0.39G

Change-Id: I79f1515bb447bfa98b7a077971e5fef7cda9d3b3
CRs-Fixed: 774533
2017-08-22 09:29:29 -07:00
yeshwanth sriram guntuka
7112fad605 qcacld-3.0: Add pe shutdown notifier callback
On shutdown, there is a possibility of
protection_fields_reset_timer expiring after mc
thread is destroyed. This results in assert in
cds_linux_timer_callback.

Fix is to register pe shutdown notifier callback
to stop lim timers before destroying mc thread.

Change-Id: I6141b1f6fe93062cf96feb273e2ac943989f8df3
CRs-Fixed: 2083371
2017-08-22 09:29:28 -07:00
snandini
0eb6644f54 Release 5.2.0.39F
Release 5.2.0.39F

Change-Id: I839bb09cf5051ea45143bae8d88b427e82bae74d
CRs-Fixed: 774533
2017-08-22 05:16:34 -07:00
Ashish Kumar Dhanotiya
cda57668d7 qcacld-3.0: Fix crash during con_mod_handler
During con_mod_handler, cleanup of adapter is being done first
and then wlan modules are getting closed. Because of which NAPI poll is
still posting frames to a device/adapter which has been freed as part
of mode change handler, leading to a crash.

To address this issue first stop all wlan modules and then cleanup the
adapter.

Change-Id: I2fade59d1e4a27620cecadb91f69866e79c85612
CRs-Fixed: 2092132
2017-08-22 05:16:33 -07:00
snandini
4345341b24 Release 5.2.0.39E
Release 5.2.0.39E

Change-Id: I19c69f74d6ce36088edaf04ff78ae034bd964fb9
CRs-Fixed: 774533
2017-08-21 19:26:09 -07:00
Sandeep Puligilla
0a11f8dc6f qcacld-3.0: Cleanup legacy scan code
Cleanup unused legacy scan code related
to abort scan.

Change-Id: I32c4c81b54bd464ebd5918c5a697fc57f505abc7
CRs-Fixed: 2063667
2017-08-21 19:26:08 -07:00
Ravi Joshi
9771d43a29 qcacld-3.0: Introduce ini to control NDI mac randomization
Allow disabling randomization of NDI MAC address. This will allow
faster debugging and give OEMs option of disabling this if not
required.

Change-Id: Ie4f4c1dba2014be50c997715d65e3f97e5d5980e
CRs-Fixed: 2069470
2017-08-21 18:02:09 -07:00
snandini
d6ed2c07bc Release 5.2.0.39D
Release 5.2.0.39D

Change-Id: I13ca42c87f628957334ab5d317775c6548e79dea
CRs-Fixed: 774533
2017-08-19 01:27:13 -07:00
Rajeev Kumar Sirasanagandla
aec0b08b54 qcacld-3.0: Add support to include selective scan IEs only
qcacld-2.0 to qcacld-3.0 propagation

Add support to include only selective IEs in probe requests in
order to improve user's privacy.

Change-Id: Ib874af7ec2f5453282ffe0e8fc2e50934460b745
CRs-Fixed: 1086582
2017-08-19 01:27:13 -07:00
snandini
f2a3339269 Release 5.2.0.39C
Release 5.2.0.39C

Change-Id: Ifefbfd6448381dfb50641192cfd80f1b326f5535
CRs-Fixed: 774533
2017-08-18 21:27:16 -07:00
Abhishek Singh
2d775fd638 qcacld-3.0: Post non deferable LIM msg from WMA with high priority
As beacon and probe rsp are not deferred in LIM the non-deferable
LIM msgs from WMA may get delayed due to processing of beacons and
probe responses.

To Avoid this post the non-deferable LIM msg from WMA with
high priority so that they can be processed before beacons and probes.

Change-Id: Ida7cb86be397a415893142a318b75b41c13578b5
CRs-Fixed: 2090173
2017-08-18 21:27:15 -07:00
Abhishek Singh
a91d619afc qcacld-3.0: HT STA is indicated as VHT capable to firmware
When HT STA connect to VHT SAP, the STA is indicated as VHT capable
to firmware and thus MCS8 rates are used.
The reason is that the condition to set SMPS intolerance was added in
between the "if- else if -else" condition to determine ht and VHT
capability of sta. This resulted in else condition to execute for
peer STA which set VHT and HT capability from the psession and doesn't
consider capability of peer sta.

Fix this issue by reordering the if condition to set SMPS
Intolerance to firmware.

Change-Id: I483a5c44bc4beba0d03e1a80028993b30b47b108
CRs-Fixed: 2079727
2017-08-18 21:27:13 -07:00
snandini
1e2426d51d Release 5.2.0.39B
Release 5.2.0.39B

Change-Id: Ib0d13b993d9823848458784f2d3abf17d71a5b29
CRs-Fixed: 774533
2017-08-18 19:07:31 -07:00
Jeff Johnson
1534017fd5 qcacld-3.0: Finish removing wext support for scan commands
Change "qcacld-3.0: Remove wext support for scan commands"
(I05ccc13d1b658e62b19a389e6a480707b5c446b9) removed most, but not all,
of the code that supported wext scan commands. Remove the remaining
wext scan support code.

Change-Id: Ib48c61956be1e90f981369083a910dba1bb5b77e
CRs-Fixed: 2093342
2017-08-18 19:07:30 -07:00
Jeff Johnson
c51cac9d1d qcacld-3.0: Rename struct hdd_hostapd_state_s
The Linux Coding Style eschews the encoding of type information into
names, so rename struct hdd_hostapd_state_s to align with that
guidance.

Change-Id: Ic520ecd0c6ba64428533aae6eef92bcb4d8daeaa
CRs-Fixed: 2093282
2017-08-18 19:07:28 -07:00
Jeff Johnson
3e8d37760e qcacld-3.0: Rename struct hdd_cfg80211_state_s
The Linux Coding Style eschews the encoding of type information into
names, so rename struct hdd_cfg80211_state_s to align with that
guidance.

Change-Id: I10342551370e1b81d49df734cf81a44501cb0bf7
CRs-Fixed: 2093281
2017-08-18 19:07:26 -07:00
snandini
08190c6dc4 Release 5.2.0.39A
Release 5.2.0.39A

Change-Id: Ic03f041b4a3d5c2ff5ef7f9eb7b3b75e9f59e3db
CRs-Fixed: 774533
2017-08-18 18:27:46 -07:00
Jeff Johnson
a49c0ac465 qcacld-3.0: Replace typedef hdd_pmf_stats_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_pmf_stats_t typedef does
not meet any of those criteria, so replace it with a well named
struct.

Change-Id: I6e1f205f36ca35d58f5f8846d95d76976266a8bd
CRs-Fixed: 2093258
2017-08-18 18:27:45 -07:00
Krunal Soni
ca50b456ab qcacld-3.0: Update supported band from service ready extension
Current driver is updating supported bands from service ready event
but in new platform service ready extension is carrying the updated
supported bands.
Overwrite supported bands which have been given through service ready
extension event.

Change-Id: I128133c494e3831a0994d79fa8cb9b46d4f1788a
CRs-Fixed: 2090909
2017-08-18 18:27:43 -07:00
snandini
0307aa2e92 Release 5.2.0.39
Release 5.2.0.39

Change-Id: I6ccf289961347db14e6f29c41afffbbd76fa364a
CRs-Fixed: 774533
2017-08-18 17:46:53 -07:00
Rajeev Kumar
5cb007fbfa qcacld-3.0: Define HDD rate limit loggign API
Define HDD rate limit loggign API such that logs
can be rate limited on need basis.

Change-Id: If8dcf48ad9381b5b10df064cfe189bcb932f924c
CRs-Fixed: 2083919
2017-08-18 17:46:52 -07:00
Ravi Kumar Bokka
7a4034e3a1 qcacld-3.0: modify ini value for MCBC active apf param
modify ini max value to 1 for mcbc active apf.

Change-Id: Ief648ea879feacba4812ccf4427dfe1fde1a76f5
CRs-Fixed: 2072916
2017-08-18 17:46:49 -07:00
snandini
6e11712e03 Release 5.2.0.38Z
Release 5.2.0.38Z

Change-Id: Ic58c6619e99f864ef9ea3a8a5905e7d93731909a
CRs-Fixed: 774533
2017-08-18 05:37:36 -07:00
Poddar, Siddarth
2fb98079a9 qcacld-3.0: Add missing qdf_spinlock_destroy() to free debug cookie
Add missing qdf_spinlock_destroy() to destroy spin lock debug cookie
for SLUB build. For normal builds, qdf_spinlock_destroy() is a NO-OP
function.

Change-Id: Idccdc9f7acaea785a600e14304368f53ff7e17d7
CRs-Fixed: 2077964
2017-08-18 05:37:35 -07:00
snandini
42868660dc Release 5.2.0.38Y
Release 5.2.0.38Y

Change-Id: I745b24728563cba0f65b2640c9665798f7095925
CRs-Fixed: 774533
2017-08-17 03:27:00 -07:00
snandini
35fc911663 Release 5.2.0.38X
Release 5.2.0.38X

Change-Id: Ib2d0c54a55db7dca7673d8d97ac29e7f8be65a3d
CRs-Fixed: 774533
2017-08-17 00:06:55 -07:00
Jeff Johnson
07f9474753 qcacld-3.0: Replace typedef hdd_stats_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_stats_t typedef does not
meet any of those criteria, so replace it with a well named struct.

Change-Id: Ie4340278dc449f7d0bd65be726a8d573506e4f1a
CRs-Fixed: 2092843
2017-08-17 00:06:54 -07:00
Jeff Johnson
41a6496ffe qcacld-3.0: Replace typedef roaming_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 roaming_info_t typedef does not
meet any of those criteria, so replace it with a well named struct. In
the process remove the unused roamingEvent that it contains.

Change-Id: I0bf974fcbe0a591973610eef27acc3da07071a57
CRs-Fixed: 2092842
2017-08-17 00:06:52 -07:00
snandini
991e1ded93 Release 5.2.0.38W
Release 5.2.0.38W

Change-Id: I59c9676163ed21a51cc874cbf906c3bacd9f0b08
CRs-Fixed: 774533
2017-08-16 23:27:00 -07:00
Ashish Kumar Dhanotiya
9cd0d7c74f qcacld-3.0: Buffer overflow in setrmcenable, setrmcactionperiod
There is a buffer overflow while using sscanf in setrmcenable
and setrmcactionperiod APIs.
To resolve this, use sscanf according to buffer length.

Change-Id: I91b0c36cb8c67d45afb0b95ac944f9e87187f85a
CRs-Fixed: 2086337
2017-08-16 23:27:00 -07:00
snandini
df295ba6b3 Release 5.2.0.38V
Release 5.2.0.38V

Change-Id: Ib702af7ed44839075888d14ec2e8ba25eb43e254
CRs-Fixed: 774533
2017-08-16 17:37:01 -07:00
Varun Reddy Yeturu
168134f94e qcacld-3.0: Introduce lookup_threshold_5g_offset INI item
Introduce lookup_threshold_5g_offset in WCNSS_qcom_cfg.ini
which will let the user to configure separate threshold for
5G band using this offset

Change-Id: I4975f74095a5fec0657666ba864ee436cbaed604
CRs-Fixed: 2093368
2017-08-16 17:37:01 -07:00
Govind Singh
c701c4d9d2 qcacld-3.0: Add mb before updating the write index of remote ring
When replenishing Rx buffers driver updates the address of the
buffer and the index of rx buffer in rx ring to the firmware.

Make sure alloc index write is reflected in the memory before
FW polls the remote ring write index as compiler can reorder
the instructions based on optimizations.

Disable compile time reorder by adding a write memory barrier.

Change-Id: Icb37598e6c36b4a128b1bcd91bfb9d643bf083e2
CRs-Fixed: 2084210
2017-08-16 17:36:59 -07:00
snandini
c8343ab6b2 Release 5.2.0.38U
Release 5.2.0.38U

Change-Id: Ie3fcab081d03f3541f5b6d4055a093fd2d826486
CRs-Fixed: 774533
2017-08-16 11:57:25 -07:00
Kapil Gupta
ffa260296f qcacld-3.0: Changes to fix compilation warnings
Add changes to fix compilation warning related to
frame-larger-than flag. Value of this flag is set by
CONFIG_FRAME_WARN in kernel config.

Change-Id: I0d4d55c141572c9da3a459e79073b99fc5d6ea67
CRs-Fixed: 2035710
2017-08-16 11:57:24 -07:00
snandini
1205e81aa1 Release 5.2.0.38T
Release 5.2.0.38T

Change-Id: I7465c2f250bd38dfebc9e2b366436dc6caf376a8
CRs-Fixed: 774533
2017-08-16 03:27:41 -07:00
bings
37bd58f57a qcacld-3.0: Fix connection information deleting and restoring
Currently only one connection information corresponding to the
provided mode is deleted and restored, which causes channel
selecting failure in DFS testing with AP+AP concurrency mode.
When radar is found in AP+AP concurrency mode, a new valid channel
should be selected. Before selecting the channel, all existing
connection information of SAP mode should be deleted, otherwise
no valid channel can be selected.

All the connection information corresponding to the provided mode
should be deleted and restored.

Change-Id: Id363dbb2c31485fefcd6915696060923063079bb
CRs-Fixed: 2078021
2017-08-16 03:27:39 -07:00
snandini
c626f85fd4 Release 5.2.0.38S
Release 5.2.0.38S

Change-Id: Ifdc2d7e5da6198a2baaef8cba95d15f9f0d0f7af
CRs-Fixed: 774533
2017-08-16 01:07:17 -07:00
Poddar, Siddarth
05febac9b1 qcacld-3.0: Take wakelock only in authenticated state for rx packet processing
Take wake_lock for rx packet processing in hdd_rx_packet_cbk
only in authenticated state to avoid taking lock for sta cached_bufq
for which the wake_lock is acquired for all packets one by one
till entire flush duration.

Change-Id: Ia69381a7406a5a475ed07f73f3ea0edf4b3715be
CRs-Fixed: 2081963
2017-08-16 01:07:15 -07:00
snandini
d17af14c63 Release 5.2.0.38R
Release 5.2.0.38R

Change-Id: Id05e23f5ddc1a6e088004f18a725fd7b3e5ffb2a
CRs-Fixed: 774533
2017-08-15 21:37:34 -07:00
Varun Reddy Yeturu
69d44b28f6 qcacld-3.0: Reset bg_scan_client_bitmap after disconnection
Reset bg_scan_client_bitmap after disconnection so that the
roaming module does not keep getting the scan notifications
for other scans after disconnection

Change-Id: Ief8333f9802868d63c22977640bea49a2c69f4a8
CRs-Fixed: 2093219
2017-08-15 21:37:31 -07:00
snandini
1ebc19a34a Release 5.2.0.38Q
Release 5.2.0.38Q

Change-Id: I8e8a51b7fec1ea2db06774d5a048d1e22396c894
CRs-Fixed: 774533
2017-08-15 19:27:45 -07:00
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
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
snandini
a8e4ac39a0 Release 5.2.0.37S
Release 5.2.0.37S

Change-Id: Ibbf298514c24d10d67b7eb97fae4c367ca304286
CRs-Fixed: 774533
2017-08-08 23:10:31 -07:00
Yingying Tang
e145876c21 qcacld-3.0: Fix compilation error without WLAN_FEATURE_ROAM_OFFLOAD
eWNI_SME_HO_FAIL_IND is defined under WLAN_FEATURE_ROAM_OFFLOAD, but
it is used out of WLAN_FEATURE_ROAM_OFFLOAD, it will cause compilation
error. Add fix to resolve this issue.

Change-Id: I7dda8806ecadc4dd8c8c1d7f14cc7bc21bdc2bf7
CRs-Fixed: 2023694
2017-08-08 23:10:30 -07:00
snandini
2fb57dc095 Release 5.2.0.37R
Release 5.2.0.37R

Change-Id: I4758e04faede890e391c224ec5b6535f6405690d
CRs-Fixed: 774533
2017-08-08 16:05:12 -07:00
Kabilan Kannan
00d2041f9b qcacld-3.0: Restructure TDLS function to fix the compilation issue
If TDLS disabled at the build level, it triggers
build failures in some of the projects, which does
not support TDLS feature.
Restructure the TDLS function to avoid build
failures, when TDLS is not enabled.

Change-Id: I3b63546f22d0187fb42d400fd7e15ff7a3d64653
CRs-Fixed: 2056022
2017-08-08 16:05:11 -07:00
snandini
f9ac315ff5 Release 5.2.0.37Q
Release 5.2.0.37Q

Change-Id: I374fa6e3c7c9a7a5415ce3fb1a030acd07d69350
CRs-Fixed: 774533
2017-08-08 13:15:14 -07:00
Varun Reddy Yeturu
a863ec2f34 qcacld-3.0: Fix wpa index overflow issue
Check if wpa index for the OUI retrieval is
going beyond the limit of the array and return

Change-Id: I040246d7a7c2ca387282dc4d86ffdbdf34007323
CRs-Fixed: 2085702
2017-08-08 13:15:13 -07:00
Varun Reddy Yeturu
8a5d3d4775 qcacld-3.0: Fix logging levels - Part 3
Move the log messages to appropriate log levels so that
the console does not get a huge spam of unnecessary logs

Change-Id: I8e140039a3a483953606558e102db23ab8b0096a
CRs-Fixed: 2043741
2017-08-08 13:15:11 -07:00
snandini
f5df035a0a Release 5.2.0.37P
Release 5.2.0.37P

Change-Id: I9581a11836dec740e78f7b3fcaffda081ef1ea53
CRs-Fixed: 774533
2017-08-08 01:21:56 -07:00
yeshwanth sriram guntuka
0dcbcab7ca qcacld-3.0: Add delay in sending open system auth frame
On receiving auth resp with algo not supported status
code, open system auth is sent to firmware. There is
a possibility that AP does not receive ack sent by DUT
and retries auth frame. The retry frame could be received
at host after open sys auth req is sent to firmware
resulting in auth failure.

Fix is to send open system auth frame after timer of
15msec expires.

Change-Id: I6bc7097ec7568fc65a379c7c31c96d5874f1e216
CRs-Fixed: 2075272
2017-08-08 01:21:56 -07:00
Chris Guo
9597ded3df qcacld-3.0: Enable tx_free_at_download feature for SDIO WLAN
When FW support SDIO_REDUCE_TX_COMPL_FW_ACK feature, WLAN host can
enable tx_free_at_download feature to increase efficiency further.

CRs-Fixed: 2078825
Change-Id: I542e51254ca5c0a6c51f7479e0cc1cdb12a077fa
2017-08-08 01:21:54 -07:00
snandini
8fc047a34a Release 5.2.0.37O
Release 5.2.0.37O

Change-Id: I42141addf9415273d32bbc4fcae965d8d7f137d5
CRs-Fixed: 774533
2017-08-07 23:56:00 -07:00
Rajeev Kumar
d8be47afed qcacld-3.0: Flush power save command only for INFRA STA VDEV
Currently flush power save command logic is sending power save
enable for all VDEVs. FW does not support power save for SAP
VDEV hence add check to make sure to flush power save command
only for INFRA STA VDEV.

Change-Id: I8f162535f8a4c3b66b6ed136c3c0d599c7dc0dba
CRs-Fixed: 2084683
2017-08-07 23:56:00 -07:00
snandini
6cc3894900 Release 5.2.0.37N
Release 5.2.0.37N

Change-Id: I5e72c1331c6983f0a16c764d2702ec0b9caed79e
CRs-Fixed: 774533
2017-08-07 20:24:19 -07:00
jiad
b20627788b qcacld-3.0: enable pktlog support for HL project
qcacld-2.0 to qcacld-3.0 propagation

Currently for SDIO implementation, tx comp indication is
suppressed and tx_desc is freed when htt download is done.
This leads to invalid tx_desc being referenced when pktlog
indication handler wants to collect TX-ed tx_desc information.

Fix consists of two parts:
1. When pktlog is enabled in ini, enable tx comp indication
handler just like PCIe and USB. tx_desc is still valid when
pktlog indication comes.

2. Check vdev pointer embedded in tx_desc structure. vdev
pointer is set when tx_desc is allocated and set to NULL when
tx_desc is freed. This guards against invalid tx_desc_id
from firmware.

Note that performance drops should be expected when
pktlog is enabled on HL platforms.

Change-Id: Iba9b8323b4a6e2ae17e36768bda3511f52236a2c
CRs-Fixed: 2034996
2017-08-07 20:24:18 -07:00
snandini
dc963f1329 Release 5.2.0.37M
Release 5.2.0.37M

Change-Id: Id87d59e25e883c32f996c3ccb2981fc4ff2d5b63
CRs-Fixed: 774533
2017-08-07 19:22:57 -07:00
Dustin Brown
ec2c92eb37 qcacld-3.0: Release vdev start wakelock after vdev up/down
Currently, a wakelock is acquired before vdev start is sent to firmware
and released after a vdev stop response is received. In some cases, this
can cause a race condition where the device will power collapse before
the association process is complete. Instead, release the wakelock after
either vdev up or vdev down is sent to firmware, ensuring the entire
association process is protected.

Change-Id: Iab1a241f1c5810d9f71bfd86e1e8036847ebf602
CRs-Fixed: 2082928
2017-08-07 19:22:56 -07:00
snandini
9125bf04c3 Release 5.2.0.37L
Release 5.2.0.37L

Change-Id: I7b946af2dd718e7c014aa1f96fbb7f4d4beaa6a6
CRs-Fixed: 774533
2017-08-07 17:47:45 -07:00
Yun Park
b4f591d8aa qcacld-3.0: Enable WLAN host data path support for IPA WDI3.0
Change to support WLAN Napier host autonomy data path architecture.

Change-Id: I80e8f609587d0df85d2da9fb0f41cb49e02a9d2f
CRs-Fixed: 2033368
2017-08-07 17:47:45 -07:00
snandini
20747edb82 Release 5.2.0.37K
Release 5.2.0.37K

Change-Id: Ifb211967befad660dc7087d46798a31b147fa490
CRs-Fixed: 774533
2017-08-06 22:49:56 -07:00
Venkata Sharath Chandra Manchala
cc78917112 qcacld-3.0: Adjust logging level for Rx path
Change the log level from ERROR to INFO
for hdd_rx_packet_cbk log to prevent
packet information from flooding on the
kmsg.

Change-Id: I27bfcc708740f50c4b15d72b89176af2ce27f6fa
CRs-Fixed: 2082577
2017-08-06 22:49:56 -07:00
snandini
000f7452bb Release 5.2.0.37J
Release 5.2.0.37J

Change-Id: I87c92e4c6bacd3aadfc495031fc7b67715454997
CRs-Fixed: 774533
2017-08-06 20:45:06 -07:00
Ashish Kumar Dhanotiya
b28338c403 qcacld-3.0: Add host support to configure the SMPS parameters
Currently there is no support to configure SMPS parameter
from host, add support to configure SMPS parameters using ini.

Change-Id: I6f8273ffed39a0b95c31f1647e86406b870165f2
CRs-Fixed: 2080571
2017-08-06 20:45:06 -07:00
Ashish Kumar Dhanotiya
b8630abe6d qcacld-3.0: Configuration to enable/disable LPRx
Add host support to enable/disable LPRx from ini.

Change-Id: I7a5acd34331cdd1f06a2d08317efcf04c6f608a7
CRs-Fixed: 2080316
2017-08-06 20:45:04 -07:00
Deepak Dhamdhere
b0d2ddad4e qcacld-3.0: Remove peer from peer_id_to_obj map before delete
Run through the entire peer_id_to_obj_map array and if any peer_id's
peer entry points to a particular peer, change it to NULL. Calling
this routine before deleting the peer ensures that subsequent peer_unmap
events will not access a peer object that is deleted.

CRs-Fixed: 2027846
Change-Id: I05089bece20ea070694f243feb06d222f8e50ac6
2017-08-06 20:45:02 -07:00
snandini
08deb3ba98 Release 5.2.0.37I
Release 5.2.0.37I

Change-Id: If95fa00f33c5fef788b1024711f2a38e254df51d
CRs-Fixed: 774533
2017-08-06 14:48:18 -07:00
Srinivas Girigowda
5da651bc36 qcacld-3.0: Add support for CFG80211_REMOVE_IEEE80211_BACKPORT
CFG80211_REMOVE_IEEE80211_BACKPORT is added to indicate
backport of Change-Id: 57fbcce37b
from upstream 4.7 kernel to 4.4.

Hence add this flag CFG80211_REMOVE_IEEE80211_BACKPORT to
support this compilation. Also introduce HDD_NUM_NL80211_BANDS.

Change-Id: I60a15a1273f939a0a288d08d03ccb5bf1bdcc429
CRs-Fixed: 2087917
2017-08-06 14:48:18 -07:00
Srinivas Girigowda
6519b93735 qcacld-3.0: Fix clang warning 'Wlogical-not-parentheses'
logical not is only applied to the left hand side of this
bitwise operator [-Werror,-Wlogical-not-parentheses]
           (!(ies->RSN.RSN_Cap[0] >> 7) & 0x1)))
            ^                           ~
csr_api_roam.c:14617:6: note: add parentheses after the '!' to
evaluate the bitwise operator first
           (!(ies->RSN.RSN_Cap[0] >> 7) & 0x1)))
            ^
             (                               )
csr_api_roam.c:14617:6: note: add parentheses around left hand
side expression to silence this warning
           (!(ies->RSN.RSN_Cap[0] >> 7) & 0x1)))
            ^
            (                          )

Change-Id: I489eba6a6265778346bb3b20832f92774a2d5e0e
CRs-Fixed: 2087302
2017-08-06 14:48:15 -07:00
Srinivas Girigowda
f326dfe224 qcacld-3.0: clang: Remove extraneous parentheses
clang is reporting these compiler warnings.
Remove extraneous parentheses.

Change-Id: I3dd6490cc1bf2a038e72e1630ba9b0c2b5f0ebed
CRs-Fixed: 2087229
2017-08-06 14:48:13 -07:00
snandini
0cd4be2953 Release 5.2.0.37H
Release 5.2.0.37H

Change-Id: Ia9d1f87da50f0d7d90573f96e218b6396d53e324
CRs-Fixed: 774533
2017-08-06 13:48:14 -07:00
Kabilan Kannan
98440ce38e qcacld-3.0: Add ssr protection for scan callback function
Add ssr protection to scan_block_work to avoid null
reference access.

Change-Id: I0ff111abf2bbdcb7b0c3a3c255396c14b0b59f01
CRs-Fixed: 2066506
2017-08-06 13:48:14 -07:00
Ravi Joshi
62765443e6 qcacld-3.0: Fix monitor mode initialization failure on Helium
Returning a negative value from the API results in the failure
on unsupported platform.

CRs-Fixed: 2082239
Change-Id: I75b14b81eaa00d53784a6deb90b99666e28b164d
2017-08-06 13:48:12 -07:00
Srinivas Girigowda
6598eea7ff qcacld-3.0: Move logs to appropriate log levels
Move logs to appropriate log levels.

Change-Id: I230318a934762d5fcda33f2446a1b176c11fc263
CRs-Fixed: 2083965
2017-08-06 13:48:11 -07:00
snandini
1d2315220d Release 5.2.0.37G
Release 5.2.0.37G

Change-Id: If3a4c996f0a7c8003d49211c5249ac8ed3599202
CRs-Fixed: 774533
2017-08-06 11:48:36 -07:00
yeshwanth sriram guntuka
f6059f280c qcacld-3.0: Add MBO ie in beacon template sent to fw
MBO ies sent in tail buffer of beacon params
structure are not sent in beacon template to
firmware.

Fix is to add MBO ies in beacon template sent to fw

Change-Id: I3987bd431f9a21218650499afa16eac2b59e6486
CRs-Fixed: 2087752
2017-08-06 11:48:36 -07:00
Lin Bai
dc00fb8fa5 qcacld-3.0: Kernel crash as incorrect DMA buffer size
When HTT attached, driver allocates DMA buffer to record each RX ring
entry, with element size - target_paddr_t, which is bus size, and may be
different from kernel's physical address size.
While in htt_rx_detach, size of qdf_dma_addr_t used for buffer free.
In case kernel built as 64-bit, and bus size as default 32-bit,
it will crash when free.

Use same element size to avoid it.

CRs-Fixed: 2087592
Change-Id: Iabe95f92ea82b736213a8b81453163229b2a3a3b
2017-08-06 11:48:34 -07:00
Hanumanth Reddy Pothula
0586014fbf qcacld-3.0: On PNO progress, issue PNO STOP during STA session close
In STA+AP concurrency case, driver fails to receive PNO STOP
indication from the upperlayer and thereby driver fails to send
same indication to FW, leading to a FW crash.
To mitigate this issue, during STA session close, issue PNO
stop indication to FW, if PNO is in progress.

Change-Id: If30e631fc5e8151cd5ecc66ff1d48627123a0a1e
CRs-Fixed: 2059793
2017-08-06 11:48:33 -07:00
snandini
c6928a6234 Release 5.2.0.37F
Release 5.2.0.37F

Change-Id: I4af28f273d63d7218dd94690b358bfa454ecf6a7
CRs-Fixed: 774533
2017-08-06 09:47:29 -07:00