Commit Graph

11414 Commits

Author SHA1 Message Date
nshrivas
d6f83affad Release 5.2.0.104J
Release 5.2.0.104J

Change-Id: I8e0615aa1741fed9eda2af0ade26ffae4a295a0f
CRs-Fixed: 774533
2018-11-01 15:38:19 -07:00
Ashish Kumar Dhanotiya
6784b5042b qcacld-3.0: Release Interface MAC addresses gracefully
Currently if any interface comes up on any of the MAC address
from the driver's default MAC address list and if this MAC is
changed dynamically, now if this interface is deleted, it will
not be able to release this MAC address as this newly
configured MAC doesn't match with any of the MAC from the
driver's default MAC addresses and driver is not able to
release this MAC cosidering it as invalid MAC, because of
this corresponding MAC interface mask bit is also not getting
reset and will never get reset, indicating corresponding MAC
is not available for use. If MAC addresses are changed for all
the interfaces which initially comes up on driver's default
MAC address and later these interfaces are deleted, driver
will not be able to add any of new interfaces even there is
no active interface currently in the driver.

To resolve this issue add one more MAC address list for dynamic
addresses cache all the dynamic address changes in this list,
while releasing the MAC on interface delete, release the MAC
from this dynamic list and reset the corresponding interface
mask bit.

Change-Id: I9b6448dced2d3af75625a5c862d2913c33f9983c
CRs-Fixed: 2328304
2018-11-01 15:38:14 -07:00
nshrivas
d37095395b Release 5.2.0.104I
Release 5.2.0.104I

Change-Id: I539008431558b1a9bda7e0b6bb5de5225cf740af
CRs-Fixed: 774533
2018-11-01 09:17:41 -07:00
chenguo
7130396803 qcacld-3.0: Reinitialize PM objects for monitor mode
Function hdd_override_all_ps is only used for monitor mode. In
this function, unexpected PM objects will cause initialization
malfunction. Move these PM objects setting after vdev creation.

CRs-Fixed: 2338261
Change-Id: I0d0e7b1bc4ec0853a274bdea8db2bbe3a3dbe885
2018-11-01 09:17:40 -07:00
nshrivas
219f442c44 Release 5.2.0.104H
Release 5.2.0.104H

Change-Id: I28deb33495765fc0f42d2ae62a63e22c3f3b6fa1
CRs-Fixed: 774533
2018-11-01 07:40:43 -07:00
Abhishek Singh
ec7e31a70a qcacld-3.0: Do not register SAP as requestor again after reinit
During SSR the sap context is reinitialized and it request for
scan request id again deleting the older request id from scan module
this can lead to situation where the scan requestor list is filled by
SAP request id's and thus next request for request id will return 0.

Now during de init when it try to delete the requestor id 0 it delete
the 0th entry which is for CFG. Now if again SAP register the request
id it will get the 0th index which was freed and thus when CFG
requests a scan the sap callback is called instead of CFG leading to
NULL pointer access.

Fix this by not registering for request id again after SSR for SAP.

Change-Id: Ibc8ad0700b602a9c3d2769d979303499df8d6605
CRs-Fixed: 2341133
2018-11-01 07:40:42 -07:00
nshrivas
4892289f62 Release 5.2.0.104G
Release 5.2.0.104G

Change-Id: I39d611c7f0952e616788ba4e9a4cba419246d6e6
CRs-Fixed: 774533
2018-11-01 05:42:07 -07:00
jitiphil
377bcc1227 qcacld-3.0: Add legacy DP CFG items and APIs
Add the basic infra for legacy DP CFG items and the APIs
to be used from other components.

Change-Id: If7ad0e02c65e04ea13a308e680c9ba3b3d84ae25
CRs-Fixed: 2324099
2018-11-01 05:42:07 -07:00
nshrivas
ce205098f5 Release 5.2.0.104F
Release 5.2.0.104F

Change-Id: I26eaff5b645eea2b54eea713306ca6636c904c17
CRs-Fixed: 774533
2018-11-01 04:20:16 -07:00
Abhishek Singh
8d11564b56 qcacld-3.0: Fix memory leak of sap_ctx->channelList
In sap_deinit_ctx() the check to free sap_ctx->channelList is after
sap_ctx is memset to 0 and thus sap_ctx->channelList will always be
NULL and memory will never get freed.

Also there is no need to reset scan_vdev_del_in_progress after vdev
is deleted in firmware as there still can be the race when scan is
processed. scan_vdev_del_in_progress will be deleted with obj_mgr
vdev so no need to reset it.

Change-Id: Ie5f133d4db48485434436e67ce1643d8e1e04106
CRs-Fixed: 2342039
2018-11-01 04:20:16 -07:00
nshrivas
b322f913bc Release 5.2.0.104E
Release 5.2.0.104E

Change-Id: I7f9ad0c42f5ea9106a58abdc12bcd494f47fee4f
CRs-Fixed: 774533
2018-10-31 23:04:24 -07:00
Jeff Johnson
d0477f2b7a qcacld-3.0: Refactor WE_PPS_* processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of all of the WE_PPS_* sub-ioctls
has a complexity greater than 1, so refactor that logic into separate
functions to help reduce the complexity of __iw_setint_getnone().

Change-Id: I2abde9c5e300302c7948049027d2db88c893211a
CRs-Fixed: 2341123
2018-10-31 23:04:23 -07:00
nshrivas
e890acc0a7 Release 5.2.0.104D
Release 5.2.0.104D

Change-Id: I04ad27b4d8a8cf21fe70ae52acc643029079e666
CRs-Fixed: 774533
2018-10-31 19:20:37 -07:00
nshrivas
5da0012aeb Release 5.2.0.104C
Release 5.2.0.104C

Change-Id: I9ee71438b0ec536153000f7e630c879d7db0e256
CRs-Fixed: 774533
2018-10-31 16:28:11 -07:00
Abhishek Singh
254d551576 qcacld-3.0: Fix mem leak in join and reassoc req
If event posting to VDEV state machine fails, the memory allocated
in lim join and reassoc req is not freed, leading to mem leak.

Fix this by freeing the memory in failure cases.

Change-Id: I3769684e6ad64341b73dd6f6343adc8c0d26d04c
CRs-Fixed: 2342487
2018-10-31 16:28:11 -07:00
nshrivas
e903e91e63 Release 5.2.0.104B
Release 5.2.0.104B

Change-Id: I45fadf4e36b00aa3b7fa129ffbe7517016f4853a
CRs-Fixed: 774533
2018-10-31 15:00:17 -07:00
Rajeev Kumar Sirasanagandla
e5787e2440 qcacld-3.0: Handle failure of self peer remove in SSR
When SSR is in progress, when trying to remove self peer, if
wma_remove_peer() is failed then wma_vdev_detach() doesn't send del sta
response and wma_self_peer_remove() can still proceed to start vdev
hold request timer. This can lead to skip of vdev reference count
release by wma acquired during vdev attach.

To address this, release vdev reference count when self peer remove is
failed and when del self sta request is timed-out.

Change-Id: I2703261a848983b10798cb8ec74d1cec5a393ce5
CRs-Fixed: 2342453
2018-10-31 15:00:17 -07:00
Jinwei Chen
c163f9ed3e qcacld-3.0: modify WAPI initial PN value
Currently Napier FW WAPI TX/RX initial PN logic is fit for WIN
host, modify MCL host to align with WIN so that WAPI can work.

Change-Id: I0b49a25e75d1e9c4856daf8648d6561486005ba9
CRs-Fixed: 2323152
2018-10-31 15:00:12 -07:00
nshrivas
8501e50fbb Release 5.2.0.104A
Release 5.2.0.104A

Change-Id: Ifb1e762f9ab8dc7b6c371fd7f83d872be6540de9
CRs-Fixed: 774533
2018-10-31 13:21:15 -07:00
Hardik Kantilal Patel
239c7a268d qcacld-3.0: remove redundant snoc pld APIs
The snoc wlan platform driver supports snoc API with
the device pointer in all upstream kernel, So remove
the redundant snoc APIs from the pld layer.

CRs-Fixed: 2173110
Change-Id: Iee8bce586569e135da81f9a465a9e7df8b042af4
2018-10-31 13:21:15 -07:00
Abhishek Singh
d93a0b2d5c qcacld-3.0: Fix active cmd timeout for set_dual_mac_config during SSR
In error cases of set hw mode, set dual config etc are not handled
in all scenarios and thus the active cmd is not removed in this case
resulting in active cmd timeout.

Fix this by handling and sending failure resp for all the error
scenarios.

Change-Id: I21151798f58bf9816458430d96c7fd1d5f0ee07f
CRs-Fixed: 2341816
2018-10-31 13:21:10 -07:00
nshrivas
a83b817157 Release 5.2.0.104
Release 5.2.0.104

Change-Id: I4d8ae06b355cc235aa943aec7142e18a06a9b71f
CRs-Fixed: 774533
2018-10-31 11:50:41 -07:00
nshrivas
dd83a6810f Release 5.2.0.103Z
Release 5.2.0.103Z

Change-Id: Ibdd9713d801e323c8eb7df6d54df4c97c791b249
CRs-Fixed: 774533
2018-10-31 10:07:02 -07:00
Dustin Brown
d747ecd5d9 qcacld-3.0: Address style issues in stop adapter
To help reduce the complexity of future refactorings in
hdd_stop_adapter_ext(), address some simple style issues.

Change-Id: Iae67f1d828c1ffcb102a78617c40db1babf5b009
CRs-Fixed: 2342133
2018-10-31 10:07:01 -07:00
nshrivas
53e7b0b4b5 Release 5.2.0.103Y
Release 5.2.0.103Y

Change-Id: Iba37144cad30f31c6e2976e09b628ffb3fd066ae
CRs-Fixed: 774533
2018-10-30 01:46:02 -07:00
Will Huang
a47dca3872 qcacld-3.0: Map as QDF_DMA_BIDIRECTIONAL for PMF tx frame
Some target which support sending mgmt frame based on htt would DMA
write this PMF tx frame buffer, it may cause smmu check permission
fault, set a flag to do special DMA map.

Change-Id: I3686be211374d2c316726fa3248dedce87c3faed
CRs-Fixed: 2332329
2018-10-30 01:46:01 -07:00
nshrivas
8096d84309 Release 5.2.0.103X
Release 5.2.0.103X

Change-Id: Iee15e42a07b35eb0fb7f3e039f919d20036288b9
CRs-Fixed: 774533
2018-10-29 22:59:37 -07:00
yuanl
5a28749530 qcacld-3.0: Add SAP, GO and currency support for TSF feature
1) Support SAP, GO standalone case
2) Support SAP + STA concurrency
3) Support GO + STA concurrency

Change-Id: I7da2102f0d8b893bc057bc8ecf0af4ab74f81db4
CR-Fixed:2320218
2018-10-29 22:59:36 -07:00
nshrivas
1036b23fa0 Release 5.2.0.103W
Release 5.2.0.103W

Change-Id: I2d3ab19251f4e7a454e38daaf73941414675899c
CRs-Fixed: 774533
2018-10-29 18:21:02 -07:00
Jeff Johnson
cb598fd644 qcacld-3.0: Refactor WE_CLEAR_STATS processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_CLEAR_STATS has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: I51e72ccf83a6b63792c17d6c65daca6571ef21bb
CRs-Fixed: 2341122
2018-10-29 18:21:02 -07:00
nshrivas
3cce0fd7b1 Release 5.2.0.103V
Release 5.2.0.103V

Change-Id: I1ee1ccbd812b4c0cccdd972fc3f9b69d05ef73f8
CRs-Fixed: 774533
2018-10-29 15:19:08 -07:00
Pragaspathi Thilagaraj
3cf0f65518 qcacld-3.0: Remove legacy cfg items
Remove legacy cfg items definitions and related macros for the
converged CFG items.

Change-Id: I12944f50d68dafe989417dda777f29a6233c97a4
CRs-Fixed: 2340856
2018-10-29 15:19:08 -07:00
Karthik Kantamneni
df8c1769f3 qcacld-3.0: Remove legacy RATES INI & CFG Items
Remove legacy code for RATES INI and CFG items.

Change-Id: I8b4c38742be3a056697a7bd2418fde3c54c079c8
CRs-Fixed: 2340781
2018-10-29 15:19:03 -07:00
nshrivas
1249147e68 Release 5.2.0.103U
Release 5.2.0.103U

Change-Id: I20b5fc5a51de4438faaaf2cec8ad8ba4ed4e3b33
CRs-Fixed: 774533
2018-10-29 13:49:33 -07:00
Arunk Khandavalli
f9957c0fcf qcacld-3.0: Add fiwmare down case in the pld pcie uevent
When the firmware crashes platform driver notifies the driver
through CNSS_FW_DOWN. Since firmware down support is not
present for the PCI bus, The driver flags for target ready
and recovery flags are not getting set resulting in the commands
sent to firmware.

Add the firmware down support for the pci bus.

Change-Id: I20db3698602ea273038a3f024b4e5f61639f6d74
CRs-Fixed: 2338570
2018-10-29 13:49:33 -07:00
nshrivas
94bffed046 Release 5.2.0.103T
Release 5.2.0.103T

Change-Id: I387e9f0df7d20267eb301b2ea7726546dd453ff7
CRs-Fixed: 774533
2018-10-29 12:18:39 -07:00
Pragaspathi Thilagaraj
cc823ae0cf qcacld-3.0: Fix OOB read in sme_rrm_process_beacon_report_req_ind
When beacon report request action frame is received,
rrm_process_beacon_report_req() is called and num_channels value
is calculated from the action frame directly from user. This
value is assigned to pSmeBcnReportReq->channelList.numChannels
and this num channels value along with the channel list is
posted to sme for further processing. The sme function
sme_rrm_process_beacon_report_req_ind() processes this sme
message eWNI_SME_BEACON_REPORT_REQ_IND. In this function,
the channels in channel list are looped through the received
value pBeaconReq->channelList.numChannels and is copied to the
destination pSmeRrmContext->channelList array from the
pBeaconReq->channelList.channelNumber[] array.
The maximum possible number of channels in channel list
BeaconReq->channelList.channelNumber[] allocated statically
in the definition of tSirChannelList is
SIR_ESE_MAX_MEAS_IE_REQS (8).
So when the pBeaconReq->channelList.numChannels, possible OOB
read occurs.

Validate the value of pBeaconReq->channelList.numChannels
received from the action frame against the maximum supported
number of channels in channel list SIR_ESE_MAX_MEAS_IE_REQS (8).
Place this validation inside the function
sme_rrm_process_beacon_report_req_ind() instead of validating it
at rrm_process_beacon_report_req() so that it defends from other
caller sme_set_ese_beacon_request() which is from user space
command through IOCTL.

Change-Id: I2074b04081328ceab7eeb29c33631a635e9d93c3
CRs-Fixed: 2335974
2018-10-29 12:18:39 -07:00
nshrivas
04c779f53b Release 5.2.0.103S
Release 5.2.0.103S

Change-Id: I432aa8386ac65edcf7bfa679f9123685810863f2
CRs-Fixed: 774533
2018-10-29 09:34:10 -07:00
Jeff Johnson
fc6480b100 qcacld-3.0: Refactor WE_SET_AMSDU processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_AMSDU has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: I74bbc055c1587fff548512f4c7f325f75345eb95
CRs-Fixed: 2340147
2018-10-29 09:34:09 -07:00
Jeff Johnson
bd2c9916ae qcacld-3.0: Refactor WE_SET_VHT_RATE processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_VHT_RATE has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: I07299bcc7e1cba7b5ceced3ba1cf22c470cb448e
CRs-Fixed: 2340146
2018-10-29 09:34:05 -07:00
Jeff Johnson
50b1588d8b qcacld-3.0: Refactor WE_SET_11N_RATE processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_11N_RATE has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: Iea2ee6bc53a56bb92497d42ac057e6663bc07097
CRs-Fixed: 2340145
2018-10-29 09:34:02 -07:00
Jeff Johnson
71d8038cea qcacld-3.0: Refactor WE_SET_RTSCTS processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_RTSCTS has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: I9f17824abe6ac9e60cc908c46661fe991ecfd9aa
CRs-Fixed: 2340144
2018-10-29 09:33:58 -07:00
Jeff Johnson
ce996b3e66 qcacld-3.0: Refactor WE_SET_SHORT_GI processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_SHORT_GI has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: Ica2a50216c413985f05a2771641be439c6c9d8cd
CRs-Fixed: 2339229
2018-10-29 09:33:54 -07:00
Jeff Johnson
b6645852ca qcacld-3.0: Relocate hdd_set_rx_stbc() mac_handle test
hdd_set_rx_stbc() is called from both the STA and SAP ioctl
handlers. In the STA case the caller checks the mac_handle, but in the
SAP case the mac_handle is not checked. This could result in a bad
mac_handle being used in the SAP case. In order to cover both cases
relocate the mac_handle test to hdd_set_rx_stbc().

Note that this has the added benefit of reducing the cyclomatic
complexity of __iw_setint_getnone(), one of the HDD functions with the
highest complexity.

Change-Id: I9442a8a46da4066c8b4dafe2cf9ce64f608bb3a9
CRs-Fixed: 2339228
2018-10-29 09:33:51 -07:00
Jeff Johnson
57ff4fa1d2 qcacld-3.0: Relocate hdd_set_tx_stbc() mac_handle test
hdd_set_tx_stbc() is called from both the STA and SAP ioctl
handlers. In the STA case the caller checks the mac_handle, but in the
SAP case the mac_handle is not checked. This could result in a bad
mac_handle being used in the SAP case. In order to cover both cases
relocate the mac_handle test to hdd_set_tx_stbc().

Note that this has the added benefit of reducing the cyclomatic
complexity of __iw_setint_getnone(), one of the HDD functions with the
highest complexity.

Change-Id: Ie7a01ddbfb958ab87b7baf11e93d8a86c32744b7
CRs-Fixed: 2339227
2018-10-29 09:33:46 -07:00
Jeff Johnson
1ca04768ea qcacld-3.0: Relocate hdd_set_ldpc() mac_handle test
hdd_set_ldpc() is called from both the STA and SAP ioctl handlers. In
the STA case the caller checks the mac_handle, but in the SAP case the
mac_handle is not checked. This could result in a bad mac_handle being
used in the SAP case. In order to cover both cases relocate the
mac_handle test to hdd_set_ldpc().

Note that this has the added benefit of reducing the cyclomatic
complexity of __iw_setint_getnone(), one of the HDD functions with the
highest complexity.

Change-Id: I97827ee257c9e15e24468ed9800080375f082ff1
CRs-Fixed: 2339226
2018-10-29 09:33:42 -07:00
nshrivas
7d46de8b8a Release 5.2.0.103R
Release 5.2.0.103R

Change-Id: I7c24079aeb85dc9fdf629e401c8df394d84b27b0
CRs-Fixed: 774533
2018-10-29 04:39:42 -07:00
jitiphil
7af5cf252a qcacld-3.0: Open WLAN adapter in FTM mode after modules are started
According to the current code flow of con_mode_handler, the
WLAN modules are stopped, adapter is opened in FTM mode and then
the modules are started. Due to the INI/CFG value accces done as
part of opening the adapter, and since the modules are stopped
at this point, it results in a use after free scenario.

Modify code sequence of con_mode_handler to WLAN start modules
before opening the adapter in FTM mode.

Change-Id: I94afb9b2a3751247b4ae95e27b1374b25890a9d7
CRs-Fixed: 2339777
2018-10-29 04:39:42 -07:00
nshrivas
98ad588d41 Release 5.2.0.103Q
Release 5.2.0.103Q

Change-Id: Ia3bdde950b8d618601243ba7676ae0c1558bd9d8
CRs-Fixed: 774533
2018-10-29 03:11:40 -07:00
nshrivas
c9bc68f44c Release 5.2.0.103P
Release 5.2.0.103P

Change-Id: I9c19d450868171c45594335694bbb191263610d4
CRs-Fixed: 774533
2018-10-28 23:27:06 -07:00
chenguo
92af4bfb01 qcacld-3.0: Fix incorrect valid pointer checking
There is an incorret valid pointer checking after memory
allocation for monitor mode, which will cause net device up
failure. Fix this incorrect checking.

CRs-Fixed: 2338747
Change-Id: Ib1dd4d85ce7e7cace1167a082c103fb0300eb16a
2018-10-28 23:27:05 -07:00
nshrivas
9b471fda5e Release 5.2.0.103O
Release 5.2.0.103O

Change-Id: I7e6ab5d3f4a1f43e360ca42479d4bbe5369271cf
CRs-Fixed: 774533
2018-10-27 05:28:25 -07:00
Abhinav Kumar
e057b4188a qcacld-3.0: Remove legacy VHT INI & CFG Items
Remove the definition of following INI & CFG Items
for VHT caps which is common for HT and HE caps.

CFG_VHT_LDPC_CODING_CAP
CFG_VHT_SHORT_GI_80MHZ
CFG_VHT_SHORT_GI_160_AND_80_PLUS_80MHZ
CFG_VHT_TXSTBC
CFG_VHT_RXSTBC
CFG_VHT_RX_MCS_MAP
CFG_VHT_TX_MCS_MAP
CFG_VHT_BASIC_MCS_SET

Change-Id: I55390c3391a0be272c609030dae232d767111fcf
CRs-Fixed: 2333183
2018-10-27 05:28:24 -07:00
nshrivas
265f49c9ea Release 5.2.0.103N
Release 5.2.0.103N

Change-Id: I0cf24f50aad71bee53533bc048b6078545d5975c
CRs-Fixed: 774533
2018-10-27 02:32:32 -07:00
Kiran Kumar Lokere
b52cfc8309 qcacld-3.0: Send MU EDCA params after vdev up is sent to FW
FW expects the MU EDCA params after vdev up as it checks for
active vdev to save the MU EDCA params. Send the MU EDCA params
to FW after vdev up is sent to FW.

Change-Id: Ia7689f1bad884e73098020e5508f669d9b8881d7
CRs-Fixed: 2337827
2018-10-27 02:32:31 -07:00
Kiran Kumar Lokere
6f6a5688c9 qcacld-3.0: Fix issue with Nss setting status
Update Nss routine always returns failure status to user space.
Fix issue to send correct response to user space.

Change-Id: I12342ee531fc790b3042d8dcd8f5bb4b7a97e9fe
CRs-Fixed: 2340073
2018-10-27 02:32:27 -07:00
nshrivas
f2126639dc Release 5.2.0.103M
Release 5.2.0.103M

Change-Id: I2fcfdc4a85b154f082c6fa435cdb2d4accaf7480
CRs-Fixed: 774533
2018-10-27 00:11:33 -07:00
Abhishek Singh
13bf0ce6cd qcacld-3.0: Purge all serialization commands on csr stop
During csr stop, csr_roam_close_session try to purge all the pending
commands for the vdev. But as vdev is already logically deleted,
the cmds are not purged as the purge by vdev API fails to get the
vdev ref.

As in csr stop, driver clean up all the sme session so instead of
calling purge commands for vdev, call purge cmd for all the vdev.

Also the active command timeout for the delete vdev is 30 sec while
HDD waits for 15 sec. The active command timeout should be less
than the HDD timeout. Thus set active cmd timeout as 10 sec and
HDD timeout as 11 sec

Change-Id: I1d45de261c50f1835379a9cc1df4631f3e32f459
CRs-Fixed: 2339694
2018-10-27 00:11:32 -07:00
nshrivas
a7b55dd381 Release 5.2.0.103L
Release 5.2.0.103L

Change-Id: I8f0f4e2604d98c358cbead082ab54b04ec3f0255
CRs-Fixed: 774533
2018-10-26 22:37:36 -07:00
Jianmin Zhu
7a03c02b36 qcacld-3.0: Fix mem and timer leak when WMA_DELETE_BSS_REQ timeout
In wma_vdev_resp_timer(), while handling WMA_DELETE_BSS_REQ if
wma_crash_on_fw_timeout() is true, SSR is triggered, but timer
event_timeout isn't destroyed, wma_target_req, and user_data
isn't freed, result in timer and mem leak.

Change-Id: Ic47af43de671d195c6addd0360b96305af15d9bf
CRs-Fixed: 2337211
2018-10-26 22:37:36 -07:00
nshrivas
d38a1ef8c6 Release 5.2.0.103K
Release 5.2.0.103K

Change-Id: I2d6b462370e397f61fe672bd5d86f90a5b4d665e
CRs-Fixed: 774533
2018-10-26 16:42:28 -07:00
Yue Ma
fb3b78d7d2 qcacld-3.0: Add force wake APIs support in PLD
As part of PCIe power management for new WLAN devices, it requires
asserting WAKE register before accessing any MMIO registers outside
first 4K range. Add the APIs support in PLD for WLAN host driver.

Change-Id: I307cc6688fca58a52a6eaf3982d675c7a85a6965
CRs-fixed: 2326459
2018-10-26 16:42:28 -07:00
Yue Ma
9c0e4800ea qcacld-3.0: Add PLD support to check if FW is down for PCIe bus
Support to check if FW is down or not for PCIe bus in PLD layer.

Change-Id: Ic09607016c430a1c4ec6c30f9b29b1ab52b4c885
CRs-fixed: 2268026
2018-10-26 16:42:24 -07:00
nshrivas
ade36d6ffb Release 5.2.0.103J
Release 5.2.0.103J

Change-Id: I74f50a9f6298cd0b91acf437d331b8485a8f6569
CRs-Fixed: 774533
2018-10-26 12:17:24 -07:00
Dustin Brown
0c8486685e qcacld-3.0: Replace idle timeout flush in fw down
I1bfa8ab7329040c0b5ba989c0d7de7bf7228dd35 moved the idle timeout work
flush in an attempt to address a regression caused by moving the WMI
stop call in Iea53931771afd93ffaeabf704bbaffcf2460284f. Later, the WMI
stop call change was ultimately reverted in
I91046efeab8bc13b9f5c37d5a4d02b66c63e35a9, but the flush call was left
in its new location. Replace the original call site of the idle timeout
work flush, from before Iea53931771afd93ffaeabf704bbaffcf2460284f.

Change-Id: I21d74e02b5491dd3b42bb668329d09e77b416b7d
CRs-Fixed: 2339335
2018-10-26 12:17:23 -07:00
Jeff Johnson
389126493f qcacld-3.0: Refactor WE_SET_NSS processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_NSS has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone(). As part of the
refactoring relocate the mac_handle NULL check to hdd_update_nss()
since that is where it is actually used.

Change-Id: I6fef7680b8013547cb2b8eb649e207e3026144ff
CRs-Fixed: 2338567
2018-10-26 12:17:19 -07:00
nshrivas
a583339824 Release 5.2.0.103I
Release 5.2.0.103I

Change-Id: I5a1dccc7c725ac182c806fc1cae0e7dc1329f361
CRs-Fixed: 774533
2018-10-26 10:39:20 -07:00
Tiger Yu
f1551cbacc qcacld-3.0: doing tx desc init earlier in ol_tx_hl_base
Doing the tx desc initialization earlier in ol_tx_hl_base to make sure
all msdu buffers have been mapped before msdu frame is freed if encouter
error.

Change-Id: Iefded014b4a179889e67fa7cc0e0c36e8218dd83
CRs-Fixed: 2337167
2018-10-26 10:39:20 -07:00
Venkata Sharath Chandra Manchala
598f503a01 qcacld-3.0: Change return status
Return QDF_STATUS as return status
over an integer value.

Change-Id: Ib6083de9b3581e6d92ec18f39ca552a5ae0cfc2d
CRs-Fixed: 2311561
2018-10-26 10:39:16 -07:00
Gaurank Kathpalia
511634b339 Revert "qcacld-3.0: Add check for DBS mode in start bss"
this is not required as the session nss has to be 2, which
is expected, and helps to shift back to 2x2 from 1x1, while
hw mode goes to single MAC mode

This reverts commit I54ead1fd26d705a821160b5bc5d816df1d2ab8f4

Change-Id: I3bdcad1df6cc67de2533c89697b8c17d8ac4f573
CRs-Fixed: 2329616
2018-10-26 10:39:13 -07:00
Liangwei Dong
3abfe8f832 qcacld-3.0: Add Random MAC addr Action Frame Tx
1. Report NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA to
cfg80211.
2. Indicate Random MAC addr frame to source adapter.

Change-Id: Ica66fb43636fc1609febd87b6e6398dac3af25f3
CRs-Fixed: 2322077
2018-10-26 10:39:09 -07:00
Jeff Johnson
ceb233442a qcacld-3.0: Remove csr_set_band()
Change "qcacld-3.0: Remove sme_set_freq_band()" (Change-Id
I41eeda85754a4d2cb1971dd53eb07a86e5ff4b87") removed the only caller
of csr_set_band(). Since it is now apparently obsolete, remove it.

Change-Id: Ifcfbeecb28964aef82d6b51942436ba18282f1d7
CRs-Fixed: 2339197
2018-10-26 10:39:06 -07:00
Jeff Johnson
6885e9c64a qcacld-3.0: Remove sme_set_freq_band()
Function sme_set_freq_band() is not used. Since it is apparently
obsolete, remove it.

Change-Id: I41eeda85754a4d2cb1971dd53eb07a86e5ff4b87
CRs-Fixed: 2339196
2018-10-26 10:39:03 -07:00
Jeff Johnson
9516c11ecd qcacld-3.0: Fix channel width logs when updating phymode
In wlan_hdd_update_phymode() there are two separate calls to
ucfg_mlme_get_vht_channel_width(). In both cases the return status is
checked, and in case of error the following messages is logged:
  "Failed to set channel_width"

Since ucfg_mlme_get_vht_channel_width() is a "getter" and not a
"setter" change the log to:
  "Failed to get channel_width"

Change-Id: Ifed249e78e4a64d76eae9310da42ee490756337e
CRs-Fixed: 2338478
2018-10-26 10:38:59 -07:00
nshrivas
404eef6cba Release 5.2.0.103H
Release 5.2.0.103H

Change-Id: I21ebf0ebe12f1a55f7d364133a37ee19fba23a79
CRs-Fixed: 774533
2018-10-26 09:05:28 -07:00
Vignesh Viswanathan
363581803a qcacld-3.0: Send VDEV stop to the FW if ADD_BSS_REQ times out
Currently if ADD_BSS_REQ vdev_start request times out, the
wma_vdev_resp_timer notifies this as ADD_BSS_RSP with failure status
to the upper layer and the SAP FSM moves from STARTING to DISCONNECTED
state. After this the WMA_DEL_STA_SELF_REQ is sent to the FW which does
a VDEV delete. However in cases where the ADD_BSS_REQ has been sent to the
FW but the response has not been received, the FW has the VDEV in started
state and asserts if a VDEV delete is sent without sending a vdev stop.

Send VDEV stop to the FW in case of ADD_BSS_REQ times our in
wma_vdev_resp_timer.

Change-Id: Ib2b95d38cb7fd36b02a738a73dbc1f8102d2169e
CRs-Fixed: 2323293
2018-10-26 09:05:27 -07:00
nshrivas
4203b09c08 Release 5.2.0.103G
Release 5.2.0.103G

Change-Id: I9d394b19e22e9a8b23455bedac22bb3ab07a2f67
CRs-Fixed: 774533
2018-10-25 23:37:12 -07:00
Sandeep Puligilla
8345f3d0ec qcacld-3.0: Allocate scan filter memory from dynamic memory pool
csr_scan_get_result API defined 'struct scan_filter' of size
800bytes on stack and larger size memory blocks on stack is not
preferred because the stack size is limited.

Modified the memory allocation to dyanmic for scan filter.

Change-Id: I40cb0d97e0451d50aca3e9485327a4ce709e6020
CRs-Fixed: 2332496
2018-10-25 23:37:12 -07:00
Jeff Johnson
c171324c3d qcacld-3.0: Refine wlan_hdd_update_phymode()
Function wlan_hdd_update_phymode() is called from two ioctl handler
functions, __iw_softap_setparam() and __iw_setint_getnone(). Unlike
most of the ioctl "setter" functions which take two parameters (an
adapter and a value), wlan_hdd_update_phymode() currently takes four
parameters (a net device, a mac handle, an hdd context, and a value).

In addition, currently the HDD function with the highest cyclomatic
complexity is __iw_setint_getnone(). In order to reduce the complexity
of that function all of the switch/case handlers are being refactored,
and in anticipation of eventually using a vtable, the refactored
functions all expect two parameters, an adapter and a value.

In order to align with that goal, refine wlan_hdd_update_phymode() to
expect those same two parameters. Note that the net device, mac
handle, and hdd context that are currently being passed can all be
derived from the adapter.

Change-Id: Ib919e6751aee182e2d8fde90a8446935447123db
CRs-Fixed: 2338381
2018-10-25 06:34:52 -07:00
Jeff Johnson
5bee39bfe1 qcacld-3.0: Refactor WE_SET_TM_LEVEL processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_TM_LEVEL has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: Ifa68b6553b6856a008aa37af55d2ca1760da0970
CRs-Fixed: 2338380
2018-10-25 06:34:52 -07:00
nshrivas
f1ef073b9e Release 5.2.0.103F
Release 5.2.0.103F

Change-Id: I19fb633d67f40b9279e8f9a23d3dcd847f8f9896
CRs-Fixed: 774533
2018-10-25 01:37:51 -07:00
nshrivas
fb29125fa4 Release 5.2.0.103E
Release 5.2.0.103E

Change-Id: I31781f4a5a68afff1704953f08f1cdda6d5746f7
CRs-Fixed: 774533
2018-10-24 17:48:05 -07:00
Jeff Johnson
175004cd2e qcacld-3.0: Refactor WE_SET_MAX_TX_POWER_5_0 processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_MAX_TX_POWER_5_0 has a
complexity greater than 1, so refactor that logic into a separate
function to help reduce the complexity of __iw_setint_getnone().

Change-Id: I3eb942b5bbed7cdc8199c5a4233b4443613023b0
CRs-Fixed: 2338379
2018-10-24 17:48:04 -07:00
Dustin Brown
62743f4c71 qcacld-3.0: Initialize out_mode in hdd_parse_driver_mode
gcc-4.8 incorrectly flags the use of @next_mode in __con_mode_handler as
potentially uninitialized, while newer versions do not seem to have a
problem. Work around the compiler quirk by initializing @out_mode in
hdd_parse_driver_mode.

Change-Id: Iee101db6eaded8e856e461458d6a80e8279e9ca1
CRs-Fixed: 2338538
2018-10-24 17:48:00 -07:00
Jeff Johnson
f3892b5d68 qcacld-3.0: Refactor WE_SET_MAX_TX_POWER_2_4 processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_MAX_TX_POWER_2_4 has a
complexity greater than 1, so refactor that logic into a separate
function to help reduce the complexity of __iw_setint_getnone().

Change-Id: Ib6da540f9d96893899ad3865fd1c72e15a1c34bf
CRs-Fixed: 2338378
2018-10-24 17:47:56 -07:00
nshrivas
8592c39fcd Release 5.2.0.103D
Release 5.2.0.103D

Change-Id: Id8656554451473fa924ec475229ff265e2ced6ad
CRs-Fixed: 774533
2018-10-24 14:40:03 -07:00
Liangwei Dong
3774e5db94 qcacld-3.0: Add reason for opportunistic API
Add reason code return to caller to identify
the hw mode update reason.

Change-Id: I9c754626018ad7cd3f7dc1d287b834629e93dc17
CRs-Fixed: 2338089
2018-10-24 14:40:02 -07:00
nshrivas
42ad008d5b Release 5.2.0.103C
Release 5.2.0.103C

Change-Id: Ic26f5be9fe8702905efc8f3efe9714e16229790f
CRs-Fixed: 774533
2018-10-24 11:54:08 -07:00
Dustin Brown
c07ce8eb66 qcacld-3.0: Lightly refactor __con_mode_handler
There are a number of style issues in __con_mode_handler. In preparation
for additional work in this area, lightly refactor __con_mode_handler,
and address low hanging style issues.

Change-Id: I7ec7cfd369bd00a0f8acc612ebf92f7a30a7a360
CRs-Fixed: 2337850
2018-10-24 11:54:07 -07:00
nshrivas
e3a8ce28cf Release 5.2.0.103B
Release 5.2.0.103B

Change-Id: I1d5f0168710d6a24eb839e570435746606da589d
CRs-Fixed: 774533
2018-10-24 09:53:46 -07:00
Jinwei Chen
7abd27ed06 qcacld-3.0: limit the log rate for RX invalid peer processing
Limit the log rate to avoid excessive logging when host hanlde RX
data with invalid peer.

Change-Id: I5dba430809d7567905e919676d8cd3245906b884
CRs-Fixed: 2336919
2018-10-24 09:53:45 -07:00
stonez
26388d085a qcacld-3.0: Configure non aggr TX packet retransmission
Wireless application needs to tune parameters per AC based.
Such as VI/VO queue use the different re-transmission attempts
while other queue keeps the default value. It helps to improve
the video/audio performance in noisy environment. this change
add the ability to config re-transmission attempts of non
aggregation QOS packets.

Change-Id: I95404302463275803e3feff3038f04c900b14705
CRs-Fixed: 2323555
2018-10-24 09:53:32 -07:00
nshrivas
8e66eb6163 Release 5.2.0.103A
Release 5.2.0.103A

Change-Id: I352d9cb817f8637b3ca7ef87ee15e4675b81362c
CRs-Fixed: 774533
2018-10-24 08:17:34 -07:00
Ashish Kumar Dhanotiya
2ef479048d qcacld-3.0: Clear oldest cached sta information
Currently host is caching all the connected sta info
in case of SAP, once the sta count reaches to MAX, below
mentioned issues occurs:
1. Driver can not cache the information of newly connected
   stations.
2. Some of the info is cached at the time of connection while
   remaining info is cached during disconnection. In the
   disconnect path driver tries to cache some of the info
   such mc_bc count, disconnect reason code, since driver can't
   cache anymore info, it does not find the current station which
   is getting disconnected in cache sta info structure leading to
   an error, and driver is returning an error without completing
   the wait for disconnect event which is resulting in timeout.
Since sta_disconnect comes with rtnl_held, any other process
is not able to get the rtnl_lock until this timeout occurs.

To address this issue below mentioned two measures taken care:
Clear the oldest cached sta information and save the newly connected
station's information.
In the disconnect path, do not return any error and simply proceed
with disconnection as failure to cache the information of sta
should not stop the disconnection process.

Change-Id: Ia955a6774033fdfa91ff1fa7c8832b3ec7e8e1a0
CRs-Fixed: 2333075
2018-10-24 08:17:33 -07:00
nshrivas
89083f7f48 Release 5.2.0.103
Release 5.2.0.103

Change-Id: I545b43a29341977655e0f2632b43228e94ca6f7a
CRs-Fixed: 774533
2018-10-24 06:26:18 -07:00
Vignesh Viswanathan
a813462a02 qcacld-3.0: Fill Channel width for add_sta params from session entry
Currently the sta_context in add_bss params which is used to send the
peer_assoc command to the FW, the ht_enable and vht_enable are set based
on the AP's capability from the beacon. However, the channel width is
set based on the assoc response frame from the AP.

In a scenario where the AP advertises HT and VHT IEs in the beacon but
does not send HT and VHT IEs in the assoc response frame, we will end up
connecting in VHT/HT mode but with incorrect channel width.

Update the sta_context channel width also based on the AP's capability
from the beacon so that the connection would happen in the right channel
width even if HT/VHT IEs are missing in the assoc response frame.

Change-Id: Idb1907abebf32a34f88e935a30ebb8f1bce1d59c
CRs-Fixed: 2324434
2018-10-24 06:26:17 -07:00
nshrivas
96fd4a81e1 Release 5.2.0.102Z
Release 5.2.0.102Z

Change-Id: Ifdcbce6a6ff64e712c59f5aa3c703d68669a84ec
CRs-Fixed: 774533
2018-10-24 04:49:34 -07:00
Abhishek Singh
fc740bed63 qcacld-3.0: Fix e_sme_command_nss_update stuck issue
Update NSS command is remove once driver receive the tx completion
event for the beacon. If SAP is in CAC wait state driver will not
get the tx completion for the beacon and the update NSS will timeout
after 30 sec and the serialization cmds queues will get stuck.

To avoid this remove the update NSS command from active queue as
soon as beacon is sent to firmware

Change-Id: I6f5b6bce91bdfacd4621020f313be25f74696b9d
CRs-Fixed: 2332302
2018-10-24 04:49:34 -07:00
hangtian
5fe81f014a qcacld-3.0: Update chandef if choosing new channel for softap
Currently if hostapd choose channel 149, enable ieee80211d, and
select country_code JP. Driver will choose random channel after regd
updated to JP got from firmware. Since 149 is invalid for JP
country_code, driver choose random channel in JP channel list.
Driver indicate cfg80211 chandef is changed in hdd_chan_change_notify.
However, if we don't update cfg80211_ap_settings.chandef in
cfg80211_ops.start_ap, cfg80211 will copy old chandef back to
wdev->chandef after cfg80211_ops.start_ap.  Then reg_wdev_chan_valid
will return false and cfg80211_leave leads to stop
AP in reg_leave_invalid_chans.

Change-Id: I3f89da46b4172fdea2774703f32b9cbabff41eeb
CRs-Fixed: 2315627
2018-10-24 04:49:30 -07:00
nshrivas
c3b52360c6 Release 5.2.0.102Y
Release 5.2.0.102Y

Change-Id: Ie51702f7dde349d8341944f2479f305dfe84f080
CRs-Fixed: 774533
2018-10-24 03:17:03 -07:00
nshrivas
f16d12c794 Release 5.2.0.102X
Release 5.2.0.102X

Change-Id: Id58143d21be2816fd5873c8926726212bfc214e6
CRs-Fixed: 774533
2018-10-24 01:45:09 -07:00
Rajeev Kumar
fe6e62f50f qcacld-3.0: Reset cfg_ctx to NULL after its freed
Reset cfg_ctx to NULL after its freed to avoid any use
after free.

Change-Id: Iff0eb6f6db5a1467913cebd09a424776ed3390c1
CRs-Fixed: 2337050
2018-10-24 01:45:08 -07:00
Dustin Brown
4c66322b99 qcacld-3.0: Abstract idle shutdown timer start/stop
The code to start and stop the idle shutdown timer in HDD is currently
copy-pasted in multiple locations. Abstract this logic behind two new
APIs, and call these APIs where appropriate.

Change-Id: I73b05e603454a4817cb9c1606c1207d7fe68e5ab
CRs-Fixed: 2337755
2018-10-24 01:45:05 -07:00
nshrivas
e16cf530ca Release 5.2.0.102W
Release 5.2.0.102W

Change-Id: I56d091d40377a6f66c45eeaa38c0e3c3f5d64ec2
CRs-Fixed: 774533
2018-10-23 16:51:28 -07:00
Rakshith Suresh Patkar
4faeb2e806 qcacld-3.0: Add NULL check for adapter in hdd_nud_filter_netevent
API hdd_nud_filter_netevent is used to filter netevents for
STA interface. It is the driver's responsibility to
filter and act on event if it is for the net device. However,
the NULL check that is present in hdd_validate_adapter comes
with error logs which flood the console.

Add NULL check for adapter after call to hdd_get_adapter_by_macaddr
in hdd_nud_filter_netevent so that if the event is not for
the net device, ignore the event and return to avoid excessive
logging.

Change-Id: Icfb2f27f97712bf8e1422404a85163e801d43641
CRs-Fixed: 2335081
2018-10-23 17:57:56 +05:30
nshrivas
ddf1348378 Release 5.2.0.102V
Release 5.2.0.102V

Change-Id: I1daa6e2ae1183732af263a10d4e7daf54ecfbdd7
CRs-Fixed: 774533
2018-10-22 21:45:04 -07:00
Liangwei Dong
1ba994826c qcacld-3.0: Get proper channel after scan for SSID
If there is no scan cache available, csr_roam_connect
will trigger a scan and after scan complete csr will
call csr_roam_issue_connect to connect one of candidate BSS.
And driver only checks the first candidate BSS's channel
for HW mode change after scan complete.
The issue is if connect first candidate failed, the next
or other candidate BSS may require DBS in concurrency
condition and the check
policy_mgr_is_hwmode_set_for_given_chnl will be failed.
To avoid such the hw mode check failed, we need to change hw
mode early if any of BSS requires DBS mode before try to
connect the BSS candidate in list one by one.

Add API csr_scan_get_channel_for_hw_mode_change which returns
DBS required candidate channel in BSS list if available,
otherwise returns the first candidate's channel.

Change-Id: I42862f100ee56ada41d6397346937219d0e688df
CRs-Fixed: 2335075
2018-10-22 21:45:04 -07:00
nshrivas
bd2381d269 Release 5.2.0.102U
Release 5.2.0.102U

Change-Id: I32ed830390f05bcd623a543e4cb700343dffbf92
CRs-Fixed: 774533
2018-10-22 19:49:19 -07:00
Jeff Johnson
5e15ef5157 qcacld-3.0: Refactor WE_SET_MAX_TX_POWER processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_MAX_TX_POWER has a
complexity greater than 1, so refactor that logic into a separate
function to help reduce the complexity of __iw_setint_getnone().

Change-Id: I9d2390aba4d90f7171de516be68f7073d1f2e4eb
CRs-Fixed: 2336982
2018-10-22 19:49:18 -07:00
Jeff Johnson
5d4a6d15ed qcacld-3.0: Refactor WE_SET_TX_POWER processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_TX_POWER has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: I91f5da1593d5c8c6bfacbcc76e8595b3957b3ec2
CRs-Fixed: 2336981
2018-10-22 19:49:15 -07:00
Jeff Johnson
9451194fef qcacld-3.0: Refactor WE_SET_WOW_DATA_INACTIVITY_TO processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_WOW_DATA_INACTIVITY_TO
has a complexity greater than 1, so refactor that logic into a
separate function to help reduce the complexity of
__iw_setint_getnone().

Change-Id: Ibe02deaaf0250b434d72da23088ee0aaec311006
CRs-Fixed: 2336980
2018-10-22 19:49:12 -07:00
Jeff Johnson
693722c4b4 qcacld-3.0: Refactor WE_SET_DATA_INACTIVITY_TO processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_DATA_INACTIVITY_TO has a
complexity greater than 1, so refactor that logic into a separate
function to help reduce the complexity of __iw_setint_getnone().

Change-Id: Ica3c1c31ac8ae88d02d5d34d2fc1e53aa70508b9
CRs-Fixed: 2336979
2018-10-22 19:49:08 -07:00
Jeff Johnson
eb4368a044 qcacld-3.0: Refactor WE_SET_MAX_ASSOC processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_MAX_ASSOC has a
complexity greater than 1, so refactor that logic into a separate
function to help reduce the complexity of __iw_setint_getnone().

Change-Id: Ie24b589f2b32ea495cfaba7a600ef77e10d20f9e
CRs-Fixed: 2336978
2018-10-22 19:47:12 -07:00
Jeff Johnson
daf2e6a888 qcacld-3.0: Refactor WE_SET_POWER processing
Currently the HDD function with the highest cyclomatic complexity is
__iw_setint_getnone(). The handing of WE_SET_POWER has a complexity
greater than 1, so refactor that logic into a separate function to
help reduce the complexity of __iw_setint_getnone().

Change-Id: I4a2c08faf7ec88ca35a353c778fa0269f35eb76d
CRs-Fixed: 2336977
2018-10-22 19:47:08 -07:00
nshrivas
a2949089e8 Release 5.2.0.102T
Release 5.2.0.102T

Change-Id: I1b48421c8b5926ca5832e49392bf5f1c95d55d65
CRs-Fixed: 774533
2018-10-22 18:23:45 -07:00
Jeff Johnson
297a398c27 qcacld-3.0: Refine the SME NAN public interface
Update the SME NAN public interface as follows:
1) Move the sme_nan_event() prototype to nan_api.h
2) Fully document the interfaces (not the implementations)
3) Utilize the new mac_handle_t abstraction
4) Clean up local coding style violations

Change-Id: I7ae6fff6e4a44570463383e9f6f50731fa594192
CRs-Fixed: 2335643
2018-10-22 18:23:44 -07:00
nshrivas
1a662f9e97 Release 5.2.0.102S
Release 5.2.0.102S

Change-Id: I9bd8544606acdd4cbd1c9332e20266405a860344
CRs-Fixed: 774533
2018-10-22 15:06:38 -07:00
nshrivas
1e4e68ef8b Release 5.2.0.102R
Release 5.2.0.102R

Change-Id: I378ce96f8722a3341ed11f348c46a6eb5c64e72e
CRs-Fixed: 774533
2018-10-22 13:20:17 -07:00
Sandeep Puligilla
ec0dd9a38c qcacld-3.0: Remove cfg.txt file
cfg.txt content was moved to cfg_proc_msg.c file due
to change in process to populate the CFG items.
Remove unused cfg.txt file.

Change-Id: I2f942b1dcb11a98a75a4c968d79f9ceef44172fa
CRs-Fixed: 2336129
2018-10-22 13:20:16 -07:00
nshrivas
580fd886ab Release 5.2.0.102Q
Release 5.2.0.102Q

Change-Id: Ib15c32824d2a332cd38f40102624450f9872776e
CRs-Fixed: 774533
2018-10-22 07:00:02 -07:00
Bala Venkatesh
ca29fbceaa qcacld-3.0: Delete all peers in TDLS component
In case of heartbeat failure or deauth from AP,
From lim Del sta requests are sent to FW and with response
required false, Since del sta response is not received
TDLS component is not notified to reset the local
tdls component structures and also upper layers are
notified of this peer deletion.

Change-Id: Ica0b150df7646af60868b2806432795896c75bcd
CRs-Fixed: 2334711
2018-10-22 07:00:01 -07:00
nshrivas
5fbf54f574 Release 5.2.0.102P
Release 5.2.0.102P

Change-Id: I9a5ddf8219f141ce315bc7054071f666d3b5f3e2
CRs-Fixed: 774533
2018-10-22 05:25:50 -07:00
gaurank kathpalia
837f620084 qcacld-3.0: Add wps params to mlme component
Add wps params in respect to CFG
convergence

Change-Id: I462e3e1b3f60c7ec65a7cdf5e3bc7b69c28a5d79
CRs-Fixed: 2326841
2018-10-22 05:25:49 -07:00
nshrivas
8e058a7061 Release 5.2.0.102O
Release 5.2.0.102O

Change-Id: I42e142d90ea3ef7995094314abce34f21c4392b1
CRs-Fixed: 774533
2018-10-22 03:52:12 -07:00
Wu Gao
d7dd6e4157 qcacld-3.0: Rename some ucfg APIs of PMO
To keep names of PMO ucfg APIs consistent, change some of them from
"pmo_ucfg_xxx" to "ucfg_pmo_xxx".

Change-Id: I77165be8c5c408c3f91f84a477c15be1c6ea15e8
CRs-Fixed: 2334109
2018-10-22 03:52:11 -07:00
Dustin Brown
53f51e7c9b qcacld-3.0: Remove wlan_hdd_get_session_type()
wlan_hdd_get_session_type() implements a subset of
hdd_nl_to_qdf_iface_type(). Remove wlan_hdd_get_session_type() and use
hdd_nl_to_qdf_iface_type() instead to reduce duplicate code.

Change-Id: I9186ff28def73edffa027d454540543c8619144d
CRs-Fixed: 2336080
2018-10-22 03:52:07 -07:00
nshrivas
83b8a3540f Release 5.2.0.102N
Release 5.2.0.102N

Change-Id: I4195d128ede013b2b6a744b196b76f6d996f972a
CRs-Fixed: 774533
2018-10-22 01:02:51 -07:00
Min Liu
74a1a5032f qcacld-3.0: HDD: Remove excessive logs - Part 1
Remove log in callers of the following function:

qdf_mem_malloc()

Change-Id: I33019772f0c9289eb7e770cfa98739e0260cca81
CRs-Fixed: 2331653
2018-10-22 01:02:51 -07:00
nshrivas
f13a016797 Release 5.2.0.102M
Release 5.2.0.102M

Change-Id: I4cd84034bb120524a38ad910df61e74fe59ca18b
CRs-Fixed: 774533
2018-10-21 23:14:17 -07:00
Dustin Brown
458027cef4 qcacld-3.0: Remove hdd_device_mode_to_string()
qdf_opmode_str() has recently been added for converting a vdev operating
mode into a human readable string. Historically, HDD has used
hdd_device_mode_to_string() for this purpose. Replace
hdd_device_mode_to_string() with qdf_opmode_str() such that there is one
function for mapping vdev operating mode to human readable string.

Change-Id: I38880f915b617b5c02b2029762eacdf6ef8bac15
CRs-Fixed: 2336065
2018-10-21 23:14:16 -07:00
nshrivas
ce5df07519 Release 5.2.0.102L
Release 5.2.0.102L

Change-Id: I42f8b5a10cfdeaeddfc9d1f8b88f6efa06a59945
CRs-Fixed: 774533
2018-10-19 16:53:15 -07:00
Dustin Brown
61cc393b74 qcacld-3.0: Convert open adapters to vtable map
Using a switch case as a method for mapping an enumerated value to a
handler function has the down side of allowing future changes to pollute
the switch case with additional logic. It also tends to lead to high
cyclomatic complexity. Avoid these issues in hdd_open_adapters_for_mode
by converting the switch case to a vtable.

Change-Id: If91cbaf1e0ed561122b599550f3c450ec47eda31
CRs-Fixed: 2335970
2018-10-19 16:53:14 -07:00
Dustin Brown
a2deeb7047 qcacld-3.0: Unify open_interfaces and register_req_mode
The logic for creating the initial vdevs for a given driver mode is
implemented in two different functions: hdd_open_interfaces() and
hdd_register_req_mode(). This had lead to some duplication between the
two implementations. Instead, unify both functions so the duplicate code
can be removed.

Change-Id: I9a1f74ca14d3d4cda8d05bf6b000038770a1ea05
CRs-Fixed: 2335969
2018-10-19 16:53:10 -07:00
nshrivas
8a437f1a68 Release 5.2.0.102K
Release 5.2.0.102K

Change-Id: Ice371f334d7b7fb1520edfc8be331db200c83b01
CRs-Fixed: 774533
2018-10-19 13:09:51 -07:00
Jeff Johnson
7272ea7cc0 qcacld-3.0: Refine the extscan stop scan logic
Make the following updates to the extscan stop scan logic:
1) Exclusively use the Unified WMI data structures.
2) Update the HDD<=>SME interface to enforce the contract that SME
   must not make any assumptions about the buffers provided by HDD.

Change-Id: Ie4a693b4a91d728a075cffad3ee368b22d9c5b2a
CRs-Fixed: 2335647
2018-10-19 13:09:50 -07:00
nshrivas
a8d1740222 Release 5.2.0.102J
Release 5.2.0.102J

Change-Id: Ia5f17c8d6ea9cdf6d8ec3c2a990a898fc578c263
CRs-Fixed: 774533
2018-10-18 18:41:44 -07:00
Dustin Brown
686d3030e2 qcacld-3.0: Change dot11p_mode to enumerated type
dot11p_mode is currently represented with a uint8_t type, despite an
appropriate enumerated type being available. Change the field's type to
the more restrictive 'enum dot11p_mode' instead of uint8_t.

Change-Id: I847ce0901297b0a3e4312e8ce4124a886320f174
CRs-Fixed: 2335575
2018-10-18 18:41:44 -07:00
nshrivas
37ec52267e Release 5.2.0.102I
Release 5.2.0.102I

Change-Id: Iaf5f1628e200b1a7ce1fa1521913040bb863b80f
CRs-Fixed: 774533
2018-10-18 14:22:19 -07:00
Jeff Johnson
dab5860bf9 qcacld-3.0: Refine the extscan start scan logic
Make the following updates to the extscan start scan logic:
1) Exclusively use the Unified WMI data structures.
2) Update the HDD<=>SME interface to enforce the contract that SME
   must not make any assumptions about the buffers provided by HDD.
3) Address a multitude of checkpatch issues

Change-Id: I68dc988fafb7e14b2b80d1007adf614ddff284e2
CRs-Fixed: 2335045
2018-10-18 14:22:18 -07:00
nshrivas
54ecf6c7d5 Release 5.2.0.102H
Release 5.2.0.102H

Change-Id: I00582cda13e6de5ff77a630861e11e1cd2c63da3
CRs-Fixed: 774533
2018-10-18 08:13:26 -07:00
Jianmin Zhu
0923660ec1 qcacld-3.0: Implement LFR2 and reassoc for new vdev SM
LFR2 uses ft reassoc, whose process is different from general
connect.

1.ft reassoc, normal reassoc and assoc, all of 3 need deliver
event WLAN_VDEV_SM_EV_START to SM,  but need different handler.

2.ft reassoc send vdev start when add bss, not switch channel.

Change-Id: Ieefbcf0a28867be3c8a86d9a912143857c54fe06
CRs-Fixed: 2334194
2018-10-18 08:13:25 -07:00
nshrivas
80a7a3f7c0 Release 5.2.0.102G
Release 5.2.0.102G

Change-Id: I0ee6f5d8e0cc2c5eee2937d519eb1393093f594f
CRs-Fixed: 774533
2018-10-18 02:16:55 -07:00
Jeff Johnson
43837af883 qcacld-3.0: Replace new instance of tHalHandle in wlan_hdd_main
Previously "qcacld-3.0: Use mac_handle_t in wlan_hdd_main" (Change
If9ddbe0935d859d4c71dc11576cd7062a715b3e9) replaced all instances of
tHalHandle with mac_handle_t in wlan_hdd_main. But subsequently change
"qcacld-3.0: Allow Setting Channel&Bandwidth in STA mode" (Change
Ie9ffc701d93ed1c050375dd56151b7a0da69cdce) introduced a new instance,
so replace it as well.

Change-Id: I01e67401b0eb99b242a7a0b0d161696cbe2fba79
CRs-Fixed: 2335139
2018-10-18 02:16:54 -07:00
nshrivas
f214373311 Release 5.2.0.102F
Release 5.2.0.102F

Change-Id: I7c40f866274eb77b4e6c3e69bb59f07e5a50902c
CRs-Fixed: 774533
2018-10-18 00:21:04 -07:00
Dustin Brown
194aeca1bf qcacld-3.0: Move p2p work around to change_iface
hdd_change_adapter_mode() contains a work around for an issue with
userspace requesting station mode on a p2p adapter, expecting the wlan
driver to instead change the adapter to p2p-device mode. Hoist this work
around to the caller, __wlan_hdd_cfg80211_change_iface, so the rest of
the code doesn't need to be aware of it.

Change-Id: Ic71d6d99b1df7339dda892adcfb27605fa8dfc59
CRs-Fixed: 2332798
2018-10-18 00:21:03 -07:00
Dustin Brown
63fe49239f qcacld-3.0: Factor out common parts in change_iface
Some common parts of __wlan_hdd_cfg80211_change_iface are repeated in
multiple places. Factor out these common sections to reduce redundant
code and ensure they stay synchronized in the future.

Change-Id: I80d47f1c9a14342f777bfc169d85287a3e709a58
CRs-Fixed: 2332780
2018-10-18 00:20:59 -07:00
Dustin Brown
56377e1ebe qcacld-3.0: Prefer QDF_OPMODE in __wlan_hdd_cfg80211_change_iface
__wlan_hdd_cfg80211_change_iface() currently uses QDF_OPMODE and
nl80211_iftype relatively interchangeably, which forces the reader to
mentally convert between the two as they go and disperses the real
conversion of one into the other throughout the code. Instead, do the
conversion from nl80211_iftype to QDF_OPMODE once up front. This way
usage can be consistent and more easily followed.

Change-Id: Ie578865c3724e4a85bd249352288afac10928bb4
CRs-Fixed: 2331969
2018-10-18 00:20:52 -07:00
nshrivas
e4a74b4bb4 Release 5.2.0.102E
Release 5.2.0.102E

Change-Id: Iba336593b02b3073ca41324e793b1cb08807bd05
CRs-Fixed: 774533
2018-10-17 22:25:56 -07:00
nshrivas
53a21d1088 Release 5.2.0.102D
Release 5.2.0.102D

Change-Id: I44174e915f99c14a15af599f21326ddb72cdb9a7
CRs-Fixed: 774533
2018-10-17 19:37:24 -07:00
Manikandan Mohan
4cc1c5a4d0 qcacld-3.0: Fix VDEV SM for NAN data path interface
NAN data path interface (NDI) VDEV uses AP MLME callbacks for
VDEV state machine but some state actions are no op for NDI mode.
Update lim module to transition from NDI from VDEV START state to
VDEV up state and bypass beacon update and VDEV up WMI for NDI mode.

CRs-fixed: 2330270
Change-Id: I648811b41020a4e09aa6c7c436ec2c9693c51d97
2018-10-17 19:37:23 -07:00