Commit Graph

11556 Commits

Author SHA1 Message Date
Jeff Johnson
2b51190eeb qcacld-3.0: Rename mac in __lim_counter_measures()
An upcoming campaign will rename all instances of pMac to mac in the
driver. In function __lim_counter_measures() there is already a local
variable named mac, so the pMac renaming will cause a conflict. In
order to avoid the conflict rename the existing local variable.

Change-Id: If7438c9ca98a65c0a3c29b77d279f8bd41258165
CRs-Fixed: 2353461
2018-11-21 13:46:23 -08:00
nshrivas
5a62246566 Release 5.2.0.107J
Release 5.2.0.107J

Rebasing
Change-Id: I6355f271687a5b18c2588718534c158b12e9e1d7
CRs-Fixed: 774533
2018-11-21 13:44:36 -08:00
CNSS_WLAN Service
e933e9c8e4 Merge "Revert "qcacld-3.0: Fix WDI 1.0 MCC TX SMMU unmap"" into wlan-cld3.driver.lnx.2.0 2018-11-21 02:50:59 -08:00
Mohit Khanna
c908646fa9 Revert "qcacld-3.0: Fix WDI 1.0 MCC TX SMMU unmap"
This reverts change I7d04e9b01fbd973601ee9e4e74c6bf4dd3d0f7bb

This patchset is causing wlan_ipa_nbuf_cb to be called even when ipa_ctx
is null. wlan_ipa_nbuf_cb should not be called for non-IPA packets. Also
there should be a NULL check for ipa_ctx in the function.

Reverting the change may lead to SMMU errors during AP-AP MCC mode.

CRs-Fixed: 2352812
Change-Id: I2f2382ca12a14a09ed124ccd18a7f450282c5975
2018-11-21 14:46:31 +08:00
nshrivas
cf21bf92f6 Release 5.2.0.107I
Release 5.2.0.107I

Change-Id: Icc4ddb2f001fbce48c43328c7dc45380ae9afa9b
CRs-Fixed: 774533
2018-11-20 14:38:04 -08:00
Arif Hussain
41cbc1e9a5 qcacld-3.0: Add ucfg api to get/set ps data inactivity timeout
Add and use ucfg api to get/set ps data inactivity timeout value.

Change-Id: I8b0931870507aac146a18b70103c323bea1ca6f3
CRs-Fixed: 2335980
2018-11-20 14:38:03 -08:00
Jeff Johnson
ec85d5d076 qcacld-3.0: Remove obsolete tAniIbssRouteTable
The functionality that handles tAniIbssRouteTable is no longer
present, so remove the associated function prototype and data
structures.

Change-Id: I80eebe7494bf60b46165e0bd1eea04ce0f23c44b
CRs-Fixed: 2352149
2018-11-20 14:37:59 -08:00
nshrivas
7588e01447 Release 5.2.0.107H
Release 5.2.0.107H

Change-Id: I0d90169dfe071482a1d6564d50e313cdfafbfc38
CRs-Fixed: 774533
2018-11-20 12:19:03 -08:00
Vignesh Viswanathan
fe1b5bd1de qcacld-3.0: Add change to set HT Op Mode in handle_ht_capabilityand_ht_info
Add missing change in handle_ht_capabilityand_ht_info to set the HT
OpMode field in the LIM capabilities.

Missing change from I019961016a2f0e39c7c62066c04788d3bd3d37e7.

Change-Id: If75ef4cfca5cdd3c42bedcf1f9303a63b264cea9
CRs-Fixed: 2346227
2018-11-20 12:19:02 -08:00
nshrivas
438679cdc1 Release 5.2.0.107G
Release 5.2.0.107G

Change-Id: I6737546c60d8732b55fa303a4fce10034ac28509
CRs-Fixed: 774533
2018-11-20 10:31:29 -08:00
Karthik Kantamneni
309ed808f5 qcacld-3.0: Fix cfg80211 change interface failure
In cfg80211_change_iface if we don't get previous mode vdev
references then error is returned. In a case where there is
no vdev existing before this will cause sap failure.

Fix is if previous vdev reference is not available skip vdev
access and continue further operations.

Change-Id: I3209f1e1a86050baf389f20029a97a5bdb50d71d
CRs-Fixed: 2352385
2018-11-20 10:31:28 -08:00
wadesong
3daaeeb4ea qcacld-3.0: CFG INI refining - wave 3
Remove the definitions and related internal data structures and
value retrieving code of the following 3 CFG INI items, due to
they're not used to control any driver behavior any more.

 -gVccRssiTrigger
 -gVccUlMacLossThresh
 -gEnableBypass11d

Change-Id: I919bf191f48db4bf0947235ff804aed2b4b1bdb9
CRs-Fixed: 2352224
2018-11-20 10:31:24 -08:00
Pragaspathi Thilagaraj
6af860a3e8 qcacld-3.0: Update disable_hi_rssi after roam sync is complete
The disable_hi_rssi flag in pe session is used to control the hi
rssi scan delta value sent from the host to the firmware. If the
disable_hi_rssi is set to false, then the ini parameter
hi_rssi_scan_rssi_delta value is sent to the firmware.
When STA roams from 5G to 2G band, this disable_hi_rssi should
be set to false and hi-rssi scan delta will be non zero, so the
firmware will handle high rssi scans if the RSSI is better than
the roaming threshold. The default ini value of
gRoamScanHiRssiDelta is 10.

When host driver receives roam sync complete event, set the
disable_hi_rssi to true if band is 5G else set it to false.

Change-Id: I7b9d94f804619d7a4a11d0ba9acaa6cf5defbc68
CRs-Fixed: 2350842
2018-11-20 10:31:21 -08:00
nshrivas
9e6d301c66 Release 5.2.0.107F
Release 5.2.0.107F

Change-Id: I386059e3c7a4052d249a3e41daf9f180f05f1ba0
CRs-Fixed: 774533
2018-11-20 05:28:48 -08:00
wadesong
08b7370738 qcacld-3.0: Fix a partial AID flag discrepancy
VHT Partial AID feature's enabling is currently controlled by
gEnableGID, which is incorrect.

Make the same feature controlled by gEnablePAID.

Change-Id: I755f3f899b5f62a257b8254bfbfad7acc50d8cdd
CRs-Fixed: 2352431
2018-11-20 05:28:47 -08:00
Jeff Johnson
b1e673cd1d qcacld-3.0: Fix camelCase in hdd_cfg_get_config()
In order to conform to the coding style rename local variables in
function hdd_cfg_get_config().

Change-Id: I2b3d3d6b5c3b630967bed389f7f33b6c7b091413
CRs-Fixed: 2352065
2018-11-20 05:28:43 -08:00
nshrivas
452b907100 Release 5.2.0.107E
Release 5.2.0.107E

Change-Id: I841035a9668be2b82bbff6d6d382654fa143d9c6
CRs-Fixed: 774533
2018-11-20 00:26:34 -08:00
Bala Venkatesh
6d53709337 qcacld-3.0: ADD HE CFG items in MLME component
Refactor HE cap cfg items to new mlme component using
updated cfg architecture.

Change-Id: Ib983d3fc983dfffd2eee7efd1a4e3681d26d84a6
CRs-Fixed: 2351420
2018-11-20 00:26:34 -08:00
nshrivas
f4c2fca917 Release 5.2.0.107D
Release 5.2.0.107D

Change-Id: I562a01f2ab103c04f5650ca4a3abd1f1f1b3a33e
CRs-Fixed: 774533
2018-11-19 06:41:32 -08:00
Pragaspathi Thilagaraj
aba1b5d830 qcacld-3.0: Fix possible NULL pointer dereference in lim_send_mlm_assoc_ind
In SAP mode, when a STA is associated, the assoc request is
stored in session_entry->parsedAssocReq. The function
lim_send_mlm_assoc_ind is called to indicate the association to
SME. In lim_send_mlm_assoc_ind, parsedAssocReq is copied to
assoc_req which fills the assoc_ind to be sent to sme,
and session_entry->parsedAssocReq is dereferenced before
validating it against NULL. This could result in NULL pointer
dereference.

Add NULL pointer check before dereferencing parsedAssocReq.
Return if it fails.

Change-Id: Ied2b5f64c0351a648c1d398f616450aa406fc82e
CRs-Fixed: 2348565
2018-11-19 06:41:31 -08:00
nshrivas
a5f3b80857 Release 5.2.0.107C
Release 5.2.0.107C

Change-Id: I13c53b5a202f33481f1337039df957c4af8cfcd6
CRs-Fixed: 774533
2018-11-19 03:19:34 -08:00
Abhishek Singh
4f5f1f94ce qcacld-3.0: Remove duplicate channel info in vdev_start_params
Remove the duplicate channel info in vdev_start_params and
it sub structure channel and use implementations
can use the channel sub structure directly.

Change-Id: Ib1c4e47639f6a4883b944200c3649dc54bb2c59a
CRs-Fixed: 2350648
2018-11-19 03:19:33 -08:00
nshrivas
3ea9fc8b9e Release 5.2.0.107B
Release 5.2.0.107B

Change-Id: Ib8df81c591d7324fb53edac96ee88a5897403476
CRs-Fixed: 774533
2018-11-17 15:59:57 -08:00
Pragaspathi Thilagaraj
9de8f865d2 qcacld-3.0: Fix null pointer dereference in wma
In wma_remove_peer_on_add_bss_failure, wma is returned from
cds_get_context(). This is not validated for null before being
passed to wma_remove_peer where dereference can occur.

Validate wma against null before passing it to wma_remove_peer.

Change-Id: Ia0323d88a719b6f6bfae058ddf499650a5c078a7
CRs-Fixed: 2350512
2018-11-17 15:59:56 -08:00
nshrivas
5c8b6e0575 Release 5.2.0.107A
Release 5.2.0.107A

Change-Id: Ibac0d095e24536705f1402ee103e27c5a505c67f
CRs-Fixed: 774533
2018-11-17 08:00:21 -08:00
Bala Venkatesh
46e2903f11 qcacld-3.0: Refactor SAP CFG items
Refactor SAP CFG items gMaxLIModulatedDTIM,
gCountryCodePriority, gSapPreferredChanLocation.

Change-Id: I52a1b3f782c440b12a2f2dcf82d9dad6cf6e76e0
CRs-Fixed: 2351237
2018-11-17 08:00:20 -08:00
nshrivas
14450a0aa5 Release 5.2.0.107
Release 5.2.0.107

Change-Id: I3195b0dc4fd72217d691ceb62eaaa0e670f845f2
CRs-Fixed: 774533
2018-11-16 23:22:55 -08:00
Jeff Johnson
7730fbbd64 qcacld-3.0: Replace halHandle in sap_ch_select
Recently all instances of tHalHandle were replaced with mac_handle_t
to align with current usage and the Linux coding standard. To align
with the new naming now replace all instances of halHandle with
mac_handle in sap_ch_select.

Change-Id: I4306005fb2677b1892272e2176e8cc73cb927d29
CRs-Fixed: 2351894
2018-11-16 14:55:36 -08:00
nshrivas
677ca1e763 Release 5.2.0.106Z
Release 5.2.0.106Z

Change-Id: Ie0dd476b5877d6e60653aff471ae70c73d6e7a18
CRs-Fixed: 774533
2018-11-16 09:24:12 -08:00
Jeff Johnson
3ba2732a20 qcacld-3.0: Use vtable in __iw_setint_getnone()
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). A prior set of changes has refactored all of
the individual sub-ioctl handling into separate functions with a
consistent signature. Now convert __iw_setint_getnone() to use a
vtable as the last step of refactoring.

Change-Id: I7f9d5442083a58b9f36e3bb874748d0d5068bc12
CRs-Fixed: 2350073
2018-11-16 09:24:11 -08:00
Sriram Madhvapathi
8a697c8d65 qcacld-3.0: Don't wait for dload-complete for wmi_service_mgmt_tx_wmi
In High Latency interfaces, do not wait for download complete when
management over wmi service is enabled.

Change-Id: I7e1e175fdf5b4c836c504a7a816be4f98d4451a0
CRs-Fixed: 2341451
2018-11-16 09:24:07 -08:00
nshrivas
321ac56671 Release 5.2.0.106Y
Release 5.2.0.106Y

Change-Id: Ice811b113a437f7d19fc733ed1977b89c4a4f986
CRs-Fixed: 774533
2018-11-16 05:10:02 -08:00
wadesong
3777915910 qcacld-3.0: Add missing CFG INI comment text - wave 2
1) Some CFG INI options' comment text are missing.
   Add them so automation script can parse and retrieve the
   correct comment text.
2) Fix some discrepancies in existing CFG INI comments.
3) Delete some INI items that are not used any more.

Change-Id: Ia2fc4fab70f78e99d14fd1f7f2b4248e6484ee32
CRs-Fixed: 2350612
2018-11-16 05:10:01 -08:00
gaurank kathpalia
2fc3b89d0b qcacld-3.0: Fill nss chain params from legacy structure
Fill the cmn nss chains structure from the mlme
nss chain params structure and send to fw

Change-Id: I573b0df20be31af536107f0585e7fa825dc2b6b3
CRs-Fixed: 2349823
2018-11-16 05:09:56 -08:00
gaurank kathpalia
651abcd134 qcacld-3.0: Legacy vdev type nss inis cleanup
With the introduction of new 32 bit ini for per vdev
nss and chains, the legacy inis are no longer required.

Cleanup the legacy inis of per vdev nss for both the
bands.

Change-Id: Ia4c8301062457a15a9bda49dca4a4a36a4372f88
CRs-Fixed: 2349204
2018-11-16 05:09:50 -08:00
gaurank kathpalia
24ed0f4056 qcacld-3.0: Infra for mlme_priv_obj with VDEV_SM enable/disable
Define two different mlme priv obj structures
based upon the flag CONFIG_VDEV_SM, for the
support of dynamic nss, chains update.

Change-Id: I00f39eb82973da86233ddfc8bdcc94b6ca8a439a
CRs-Fixed: 2349200
2018-11-16 05:09:40 -08:00
gaurank kathpalia
b414bce3b7 qcacld-3.0: Add prefix NSS_CHAINS to band info
Add prefix NSS_CHAINS to band info to remove duplicate band
info in driver, and minor code cleanup.

Change-Id: I3a8446af6b6c272cfcb19583540e2384f64e3a1a
CRs-Fixed: 2347624
2018-11-16 05:09:35 -08:00
gaurank kathpalia
6982d47826 qcacld-3.0: Accept the dynamic command only in started state
Accept the command to change the dynamic params like nss
and chains only when the vdev is in connected state for
STA/P2P-CLI, and in start state in case of SAP/P2P-GO.

Change-Id: Id4d2e3c4ac6745e25c7005af0b3c95e3e1db4533
CRs-Fixed: 2347488
2018-11-16 05:09:30 -08:00
gaurank kathpalia
ad98049f34 qcacld-3.0: Populate the ini nss, chains value in IEs
For the FW to configure the roaming module to roam either in
1x1, or 2x2 mode, the driver needs to configure the correct
MCS according to the ini params in respective vdev.

Populate the correct MCS values in MCS set of HT, and VHT.

Change-Id: Idfe595d5653ad52455d661f34e58a1502b9e3745
CRs-Fixed: 2347493
2018-11-16 05:09:25 -08:00
gaurank kathpalia
2472fb942e qcacld-3.0: Get the current chains in drv_cmd_get_antenna_mode
In the API drv_cmd_get_antenna_mode, the driver gets the
hdd_ctx->current_antenna_mode, which is pdev level, but
with the new feature of per vdev antenna mode, return the
num of chains for that particular vdev.

Change-Id: Ia8180592c34a29a7593943fc5e10c781682aac56
CRs-Fixed: 2347494
2018-11-16 05:09:20 -08:00
gaurank kathpalia
f95ae68380 qcacld-3.0: Remove the pdev level antenna mode
If the new feature of per vdev antenna mode is enabled, there
is no need of per pdev level antenna mode, as it may happen that
one vdev configures its antennas as 2, and the other vdev configures
its antennas as 1, which could lead to change of pdev level antenna
mode, by a vdev level command.

Fix is to keep the antenna mode only if the feature is not enabled.

Change-Id: I67011a5b88f8750cab22d76b1bf6d8ccc1f5375d
CRs-Fixed: 2347495
2018-11-16 05:09:16 -08:00
gaurank kathpalia
1281b30098 qcacld-3.0: Refactor nss update API
Refactor the code to a new API, and
inform the TDLS module about the new
nss change.

Change-Id: Ic478bed0634ba1f862d844994a0836a23eda3f56
CRs-Fixed: 2347496
2018-11-16 05:09:11 -08:00
gaurank kathpalia
db87c0d648 qcacld-3.0: Update dynamic config with user config
After the command to update the user params is sent to FW
update the dynamic config with user config.

Change-Id: I31ac19a86f68d9c2f8f4ce71f88eb12eb2d9b2f0
CRs-Fixed: 2347497
2018-11-16 05:09:07 -08:00
gaurank kathpalia
5836acff3e qcacld-3.0: Send the vdev ini params before vdev start
For fw to store the dynamic config, the host needs to send
the vdev params to fw before vdev start.

Send the vdev ini params to the fw before vdev start.

Change-Id: I83a93481bae8452eb47f9a14d1978e8d8dd02f03
CRs-Fixed: 2347498
2018-11-16 05:09:03 -08:00
gaurank kathpalia
748c7274d3 qcacld-3.0: Send vdev nss params to fw
Infra to send vdev nss chain user params to the fw.

Change-Id: I907ffe0906712b328e276527412530225c23b68e
CRs-Fixed: 2347499
2018-11-16 05:08:58 -08:00
gaurank kathpalia
7cb6a32f47 qcacld-3.0: Add support for dynamic chains update in set antenna mode ioctl
Populate and verify the num of chains params sent by
the user and then send it to the fw.

Change-Id: I9a4870913ce9484d1a5dc5fddcade72bdafb6116
CRs-Fixed: 2347501
2018-11-16 05:08:54 -08:00
gaurank kathpalia
2b32de0c58 qcacld-3.0: Validate nss configuration from user
Validate the nss set by the user and then
send the user config to the firmware

Change-Id: Ia1292e428e0c5b30ff0b96f2387ea29ceec9c97c
CRs-Fixed: 2347502
2018-11-16 05:08:50 -08:00
gaurank kathpalia
78af193878 qcacld-3.0: Populate the ini and dynamic params
Populate the ini and dynamic params from the mlme
component and store them to the respective
vdev component in mlme priv obj during vdev create.

Change-Id: Ic80526e51ba97c24b5340843fc97406a6ba4c7ef
CRs-Fixed: 2347504
2018-11-16 05:08:46 -08:00
gaurank kathpalia
5fcefa93b0 qcacld-3.0: Populate the per vdev chain capability in hdd context
Populate the feature capability from wmi to hdd config

Change-Id: I8931da53fb50229b405a2b7c1802a6d15a35781b
CRs-Fixed: 2347619
2018-11-16 05:08:38 -08:00
Nirav Shah
7c8c171e05 qcacld-3.0: Remove unnecessary prints from data path
1. Remove error prints for qdf_mem_malloc APIs.
2. Remove unnecessary __func__ from data path prints.

Change-Id: I6c4b110f626d84da055821c5f210a3d000b6ff15
CRs-Fixed: 2317315
2018-11-16 05:08:30 -08:00