Commit Graph

15307 Commits

Author SHA1 Message Date
Nirav Shah
cd8405ca09 qcacld-3.0: Disable BMI for Lithium architecture
Disable BMI for Lithium architecture instead of
CNSS2 as CNSS2 also used for Rome architecture.

CRs-Fixed: 2416745
Change-Id: I2d646eac483ca44689445faa1b3bbf7b0b3a05bb
2019-03-21 23:04:29 -07:00
Abhishek Singh
bc4261fe8c qcacld-3.0: Send HW mode change while switching STA channel in 2x2 DBS
If DBS 2x2 mode is supported, to operate in 2.4Ghz the driver needs to
be in DBS mode before vdev start/restart is sent on 2.4Ghz channel.
If STA is connected to a 5Ghz channel and the PEER AP switch from 5Ghz
to 2.4Ghz channel, it sends vdev restart without sending the HW mode
change to firmware.

Fix is to set HW mode before the initiating vdev restart if new channel
is 2.4Ghz and 2x2 DBS is supported and current HW mode is not DBS

Change-Id: I6dc57f37e155f0e29b17840e4e246de773f42b3e
CRs-Fixed: 2419642
2019-03-21 23:04:24 -07:00
nshrivas
892beaca4b Release 5.2.0.127B
Release 5.2.0.127B

Change-Id: Iacf017f69a961abd42fa91d5e53218aa01f252c4
CRs-Fixed: 774533
2019-03-21 21:20:14 -07:00
Dustin Brown
265e82b4d0 qcacld-3.0: Register for qdf_op_protect/unprotect
As a step towards removing qdf_ssr_protect, register for the
replacement APIs, qdf_op_protect/unprotect.

Change-Id: Ica5802082b3be51f47bdf4ae0eb132b80c29b08a
CRs-Fixed: 2418432
2019-03-21 21:20:14 -07:00
Bala Venkatesh
dcbad34816 qcacld-3.0: Return correct TDLS capabilities
In function __wlan_hdd_cfg80211_get_tdls_capabilities,
If tdls_support is true then user is notified wrong values.

Change-Id: Id177f94a841f7d6676de8b26664955194cdb0c16
CRs-Fixed: 2417950
2019-03-21 21:20:09 -07:00
Jeff Johnson
eac5aadbc9 qcacld-3.0: Avoid NULL checking result of & operation
In LIM there are two separate places where the code iterates over the
gpSession[] array and tests each &mac_ctx->lim.gpSession[i] for NULL.
These NULL checks are unnecessary, so remove them.

Change-Id: Ice7435b19cc9fc61ebe11537e0aa6acd1b61984d
CRs-Fixed: 2419289
2019-03-21 21:20:05 -07:00
Dustin Brown
9c49a33a7b qcacld-3.0: Enable qdf_periodic_work
Enable the qdf_periodic_work type, recently added in
Iedf5486474fccadb35e146e6d289c27a7c1002d3.

Change-Id: I030db4e25684e4aad7b17fb7d6e41849c05d3857
CRs-Fixed: 2410006
2019-03-21 21:20:01 -07:00
nshrivas
c7f95fa0bb Release 5.2.0.127A
Release 5.2.0.127A

Change-Id: Ib9e77eee569663a27d615b72e60fee8edeb2369e
CRs-Fixed: 774533
2019-03-21 13:02:16 -07:00
Jeff Johnson
1d44fee55f qcacld-3.0: ipa: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within ipa replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I82e4bed12122ad5aea47650f6d75e72a52207883
CRs-Fixed: 2418401
2019-03-21 13:02:16 -07:00
Kiran Kumar Lokere
86277e7536 qcacld-3.0: Check user configuration to set HE MCS map
Check the user configuration setting to set HE MCS map.

Change-Id: Ia336384c0b468725478a1e9a53ff508ac206f4c7
CRs-Fixed: 2407594
2019-03-21 13:02:11 -07:00
Jeff Johnson
61b5089770 qcacld-3.0: Rename pMac in csr_save_tx_power_to_cfg()
Change Ib55b211e4fdab427aff8c04c8ac99e1af56c6edc ("qcacld-3.0: Rename
pMac in csr_api_scan.c ") previously renamed all instances of pMac in
csr_api_scan.c to align with the Linux coding style.

Subsequently change Iac183da52495aca07c6270edeb9f383ab49c1ff5
("qcacld-3.0: Add CFG items of power") reintroduced pMac in function
csr_save_tx_power_to_cfg(), so once again rename it in that function.

Change-Id: I5272cf71c422618ae0e3c042a99f7728192321f2
CRs-Fixed: 2420015
2019-03-21 13:02:06 -07:00
nshrivas
2f23e9a2bf Release 5.2.0.127
Release 5.2.0.127

Change-Id: I759ef4ade4be5bec8098db1704b758d734a29989
CRs-Fixed: 774533
2019-03-21 05:11:51 -07:00
Ashish Kumar Dhanotiya
69903257ef qcacld-3.0: Avoid possible OOB access in set trace level
In QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL command handler
when nested attributes are getting parsed no NLA policy is
used, as no NLA policy is defined for MODULE_ID and TRACE_MASK,
these attributes will be treated as NLA_UNSPEC types and can
have a length of zero bytes. Later when these attributes
are accessed using nla_get_u32() this will result in OOB
read.

Change-Id: I7d4913feccb00877ac5f40bab8ff5e9e3891756f
CRs-Fixed: 2410900
2019-03-21 05:11:51 -07:00
Ajit Pal Singh
1d28d35436 qcacld-3.0: Disable packet log for Genoa USB
Disable packet log for Genoa USB

Change-Id: Ie7621540659aa6eabb558042992c2711f26e0134
CRs-Fixed: 2419936
2019-03-21 05:11:45 -07:00
nshrivas
cdc781846f Release 5.2.0.126Z
Release 5.2.0.126Z

Change-Id: If39f985900b243ba4e829d38356098497a319df0
CRs-Fixed: 774533
2019-03-20 22:09:55 -07:00
Sandeep Puligilla
cfd2957f4d qcacld-3.0: MBSSID: Handle Non Tx BSS association
NON TX BSS may not respond to unicast probe request.
so dont send unicast probe request as part of association.

Change-Id: Ia36d71742e4632c6c979066a833bdc98b71bae9c
CRs-Fixed: 2415672
2019-03-20 22:09:55 -07:00
Abhishek Singh
d7302318ca qcacld-3.0: Fix Mlme info updating in connected BSS in scan
Mlme info is not updated for the new AP to which driver roamed and
also not updated for the old AP after driver roamed to new AP.
Also in some case when deauth is from peer the Mlme info is not reset
by driver for the disconnected AP.
As mlme info of the AP is not updated and it remain in associated state
The AGE out logic skip the AP and thus it never ageout.

Fix this by properly updating the MLME info of the AP during roaming
And disconnection.

Change-Id: Ib17499c8ab0c4725d146d7c09077c92661adbdd5
CRs-Fixed: 2419853
2019-03-20 22:09:50 -07:00
Srinivas Girigowda
b8fdc643d2 qcacld-3.0: Consolidate multiple MAX_SSID_LEN to WLAN_SSID_MAX_LEN
Consolidate multiple MAX_SSID_LEN to WLAN_SSID_MAX_LEN.

Change-Id: I1764b891501c4e3371cf478c324ebcdcab319f5f
CRs-Fixed: 2419367
2019-03-20 22:09:45 -07:00
sheenam monga
5440bddb4a qcacld-3.0: Fix null ptr dereference in hdd_parse_vendor_acs_chan_config
Currently, hdd_parse_vendor_acs_chan_config does not do null validation for
tb[SET_CHAN_CHAN_LIST] which can lead to null pointer derefrence.

Add null pointer check for tb[SET_CHAN_CHAN_LIST] in
hdd_parse_vendor_acs_chan_config.

Change-Id: I8914e38a5d98536a816c80d484dec9878753966a
CRs-Fixed: 2410809
2019-03-20 22:09:38 -07:00
Dustin Brown
b7487688fd qcacld-3.0: Remove hdd_drv_ops_inactivity_timer
The HDD driver operation inactivity timer has been rendered obsolete by
the addition and integration of the Driver Synchronization feature.
Remove the HDD driver operation inactivity timer.

Change-Id: I9c4f555f02edd9350cf44477c3ba6c84b61b09f7
CRs-Fixed: 2419307
2019-03-20 22:09:33 -07:00
gaurank kathpalia
fa7ad0a453 qcacld-3.0: Update the ini params according to the BDF setting
Currently the driver just start the vdev according to the ini
params, without consdering the tx, rx chainmask supported by the
FW per band, per mac, which can lead to connection in 2x2, even
though FW is not capable of 2 antennas on a particular band.

Fix is to intersect both the tx, rx chainmask for both bands,
and change the ini to minimum of the nss supported by ini, and
the BDF setting of the chains.

Change-Id: Ib0e9bac19959bbcf9bade7dbd78674be4099a23d
CRs-Fixed: 2414103
2019-03-20 22:09:28 -07:00
Sandeep Puligilla
d8546bb3eb qcacld-3.0: Send MBSSID BSS information to firmware
Send MBSSID BSS information like profile number
and max profile count to firmware as part of VDEV
UP command.

Change-Id: I612f0be9c52fd61b25d1c884940f28ce9fe0872e
CRs-Fixed: 2399999
2019-03-20 22:09:23 -07:00
Lin Bai
de6c5537d3 qcacld-3.0: Disable monitor mode for SDXPRAIRIE
Monitor mode feature not required on SDXPRAIRIE, and disable
it to save memory.

Change-Id: I206ef4441cc64218cbdcea08aaa3ce584aa99bf0
CRs-Fixed: 2418590
2019-03-20 22:09:18 -07:00
Ashish Kumar Dhanotiya
f26de9c6bb qcacld-3.0: Enhancement of OS abstraction API's
The API's added in qal & qdf for abstracting the
OS calls are inlined and moved to the OS-specific
src directories.
Remove compilation of these specific files from qcacld Kbuild.

Change-Id: I0416ae721d4c86000672168da396966dd452363c
CRs-Fixed: 2418669
2019-03-20 22:09:13 -07:00
Jeff Johnson
14c15f3e44 qcacld-3.0: target_if: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within target_if replace any such comparisons with
logical operations performed on the pointer itself.

Change-Id: Id9b5185713b91b67ddf1d965a6c7e52508558d82
CRs-Fixed: 2418397
2019-03-20 22:09:09 -07:00
Jeff Johnson
15a88acfde qcacld-3.0: Rename HDD identifier advertiseConcurrentOperation
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier advertiseConcurrentOperation to be compliant.

Change-Id: I398a3a80caaafbb273a647b4c0b1f374db94d944
CRs-Fixed: 2418188
2019-03-20 22:09:04 -07:00
Jeff Johnson
de8f768f13 qcacld-3.0: Rename HDD identifier RSNMfpCapable
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier RSNMfpCapable to be compliant.

Change-Id: Ida5c11b7da71cd0f4b7a344ca5ddc1ab3975c840
CRs-Fixed: 2418185
2019-03-20 22:08:59 -07:00
Bala Venkatesh
3b113c5ec3 qcacld-3.0: Add NULL check for bss peer
In function tdls_delete_all_tdls_peers, bss peer can be NULL
if the bss peer is removed from vdev object. Hence, add  NULL
check  before getting its reference.

Change-Id: I9b2b03bc6db899c1c06de95ec5ee680d4b600aa7
CRs-Fixed: 2419567
2019-03-20 22:08:55 -07:00
nshrivas
c9a483c984 Release 5.2.0.126Y
Release 5.2.0.126Y

Change-Id: Ief9db35a809c91d36f595a1ffc4226b551ae5df2
CRs-Fixed: 774533
2019-03-20 10:10:18 -07:00
Abhinav Kumar
4356594c3e qcacld-3.0: Add new config for BTM offload
Currently, whenever roaming is triggered after a successful roam scan
firmware sends a BTM query to current connected AP when it is 11v
capable. Driver completes roaming with candidates received as part of
BTM request from AP. STA respond to AP with BTM response after
successful initiation of roaming.

Now the requirement is FW could send "BTM query with a preferred
candidate list" after a successful roam scan for some roam scan reasons
like PER, LOW_RSSI, HIGH_RSSI, MAWC, DENSE etc. Preferred candidate list
is obtained as part of roam scan based on firmware bss scoring logic.

Add new ini "btm_query_bitmask" to configure the bitmask for roam scan
reasons which is sent to firmware as part of RSO start via wmi btm config
cmd. Fw sends "BTM query with preferred candidate list" only for those
roam scans which are enabled through this bitmask.
New INI: btm_query_bitmask
Min: 0
Max: 0xFFFFFFFF
Default: 0x8
Bitmask : 0x8 (LOW_RSSI) refer enum WMI_ROAM_TRIGGER_REASON_ID.

Change-Id: I24b538745f2ac88d4e5c990573234e0f8a881b1f
CRs-Fixed: 2408111
2019-03-20 10:10:17 -07:00
Jeff Johnson
e79b53c3f7 qcacld-3.0: cmn_services: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within cmn_services replace any such comparisons with
logical operations performed on the pointer itself.

Change-Id: I7141cd900916bd4bbab1bc8c7a1b90589286582b
CRs-Fixed: 2418402
2019-03-20 10:10:12 -07:00
Jeff Johnson
5abc32d07c qcacld-3.0: Rename HDD identifier RSNMfpRequired
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier RSNMfpRequired to be compliant.

Change-Id: I9e4843c6ac8914580be5da668080802bdc0ec3c1
CRs-Fixed: 2418187
2019-03-20 10:10:08 -07:00
nshrivas
5056964e58 Release 5.2.0.126X
Release 5.2.0.126X

Change-Id: Ib6bff0361eec784f0cfd9fb4ae3c33604d578106
CRs-Fixed: 774533
2019-03-20 08:25:48 -07:00
Jeff Johnson
fb6d0cade0 qcacld-3.0: wma: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within wma replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I2b4125bc4ec229fbe466e6ce0ca4c3191f6cae59
CRs-Fixed: 2418387
2019-03-20 08:25:47 -07:00
Yuanyuan Liu
3eb39032e3 qcacld-3.0: Do not collect rddm in irq context
Do not collect ramdump in interrupt/atomic context.

CRs-Fixed: 2392126
Change-Id: I07059808a7e6a8073dde0cd020fa42075d1556cb
2019-03-20 08:25:43 -07:00
Ashish Kumar Dhanotiya
9e0627bfd8 qcacld-3.0: Add support to set inactivity timout for PMO
Currently there is no support to configure the inactivity
timeout when driver goes to wow mode or when driver resumes
from wow mode.

Add support for PMO component to configure the wow mode
inactivity timeout with ini g_wow_data_inactivity_timeout
when driver enters into wow mode and when driver resumes
from wow mode add support to configure the inactivity
timeout for non wow mode with ini gDataInactivityTimeout.

CRs-fixed: 2412866
Change-Id: I0672f22a5dfec870e5e67b23058db2729b9a0848
2019-03-20 08:25:38 -07:00
nshrivas
cd332dfe49 Release 5.2.0.126W
Release 5.2.0.126W

Change-Id: I1c769b32f1a5bf33441745d5cf4904f09e064821
CRs-Fixed: 774533
2019-03-20 06:34:03 -07:00
Arif Hussain
1f58cbbf36 qcacld-3.0: Add support to process twt qca vendor command
Add support to process twt qca vendor command.

Change-Id: I2691ce7d1cc50798d99104389fe2213791ebdf78
CRs-Fixed: 2328891
2019-03-20 06:34:02 -07:00
nshrivas
f548db2a8d Release 5.2.0.126V
Release 5.2.0.126V

Change-Id: I1570a79adf1eebdcc3c98cc8e49638447e220704
CRs-Fixed: 774533
2019-03-20 00:57:54 -07:00
Jeff Johnson
1da105c70d qcacld-3.0: mlme: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within mlme replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: Iac19509c5fdcce036e0288653d61638cf04f01d6
CRs-Fixed: 2418400
2019-03-20 00:57:53 -07:00
Jeff Johnson
06476ce1df qcacld-3.0: disa: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within disa replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: Id25e4748819d206e361a55532a5ccfd648744b15
CRs-Fixed: 2418403
2019-03-20 00:57:48 -07:00
Jeff Johnson
9e5e30d3a6 qcacld-3.0: os_if: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within os_if replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: Ia316c656c5156960d254383a8de4bfc58522f877
CRs-Fixed: 2418386
2019-03-20 00:57:43 -07:00
Jeff Johnson
78cbadef7b qcacld-3.0: Rename HDD identifier pMfpCapable
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pMfpCapable to be
compliant.

Change-Id: I8431089e225736249f6427da4a22277e8ae962b6
CRs-Fixed: 2418186
2019-03-20 00:57:39 -07:00
nshrivas
2ad9801160 Release 5.2.0.126U
Release 5.2.0.126U

Change-Id: I37561f96ecd7a7902902a55d021aa0944f445adf
CRs-Fixed: 774533
2019-03-19 22:54:39 -07:00
Jeff Johnson
eb27860f1d qcacld-3.0: p2p: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within p2p replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I3f987cc2603bd3e4d41881db8c847046884d7e76
CRs-Fixed: 2418399
2019-03-19 22:54:38 -07:00
Jeff Johnson
e7afbe9804 qcacld-3.0: cds: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within cds replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: Ib542e8e26c16dd0d6afccb0fd94bca75a89b21e1
CRs-Fixed: 2418395
2019-03-19 22:54:33 -07:00
Jeff Johnson
e85a8f7083 qcacld-3.0: bmi: Replace explicit comparison to NULL
Per the Linux Kernel coding style, as enforced by the kernel
checkpatch script, pointers should not be explicitly compared to
NULL. Therefore within bmi replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I85578cf7e40e7d6c81246b423d5b626a9570c8b4
CRs-Fixed: 2418396
2019-03-19 22:54:28 -07:00
nshrivas
d5a0828d3b Release 5.2.0.126T
Release 5.2.0.126T

Change-Id: I68f37a31fbf9ef928a121d6ff45d8ecc0ef4979d
CRs-Fixed: 774533
2019-03-19 21:16:59 -07:00
Jingxiang Ge
bd540b1cd0 qcacld-3.0: Get wlan op mode from vdev for pktlog
To avoid using qcacld code in cmn, when getting
wlan op mode, using op mode info from vdev rather
adapter.

Change-Id: If8432aae12800884e3a4567d99319afcdfa9d1f5
CRs-Fixed: 2412315
2019-03-19 21:16:58 -07:00
nshrivas
92c030908e Release 5.2.0.126S
Release 5.2.0.126S

Change-Id: Ie2870e120a1492fb88dda99afc66cec551dfb5c7
CRs-Fixed: 774533
2019-03-19 19:47:30 -07:00