Commit Graph

6267 Commits

Author SHA1 Message Date
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
Venkata Sharath Chandra Manchala
5e2fef5d39 qcacld-3.0: Remove NAPIER EMULATION flag
Remove QCA_WIFI_NAPIER_EMULATION flag for
Mohave bringup and cleanup the
necessary code under the emulation flag.

Change-Id: I43fcadc7b5e8743b762526157a5a41c5caecebf1
CRs-Fixed: 2096674
2017-08-30 10:40:40 -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
b209e82449 qcacld-3.0: Avoid bug on after wow suspend if self recovery is enabled
Avoid bug on in PMO after FW response timeoout. Invoke host initiated
self recovery callback instead.

Change-Id: I4d38bdaba4a5b2ed02002b2711570109fe242848
CRs-Fixed: 2070815
2017-08-22 16:05:35 -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
Rajeev Kumar
01e64368ce qcacld-3.0: Enable power offload unit test framework for NP builds
Enable power offload unit test framework for napier emualtion and
SoD builds such that FW low power paging requirement can be profiled.

Change-Id: I961cf7ebfbc529fd1243040aed5d124987ccaed0
CRs-Fixed: 2096444
2017-08-22 13:50:28 -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