Commit Graph

15335 Commits

Author SHA1 Message Date
Srinivas Girigowda
d36b3fa6ec qcacld-3.0: Replace TOS_* macros with QCA_WLAN_AC_*
Replace TOS_* macros with QCA_WLAN_AC_*.

Change-Id: I6ff2e341d8696f650e52f679a06a440373c87256
CRs-Fixed: 2421732
2019-03-24 17:55:04 -07:00
Srinivas Girigowda
167ea82cab qcacld-3.0: Replace WME_AC_* macros with QCA_WLAN_AC_*
Replace WME_AC_* macros with QCA_WLAN_AC_*.

Change-Id: I359a8afa48ae6697df41d8f832195c918d57e0ae
CRs-Fixed: 2421732
2019-03-24 17:55:00 -07:00
Srinivas Girigowda
865969e543 qcacld-3.0: Replace SME_QOS_EDCA_AC_* macro with QCA_WLAN_AC_*
Replace SME_QOS_EDCA_AC_* macro with QCA_WLAN_AC_*.

Change-Id: I1a9fdb21e61e9be1a2e417e1dd174b87ae4bb6b9
CRs-Fixed: 2421732
2019-03-24 17:54:54 -07:00
Srinivas Girigowda
5b86fbd1bd qcacld-3.0: Replace EDCA_AC_* macros with QCA_WLAN_AC_*
Replace EDCA_AC_* macros with QCA_WLAN_AC_*.

Change-Id: Ia48c0ffc9c87d3313e996567cf0ba9a599cdf6c3
CRs-Fixed: 2421732
2019-03-24 17:54:49 -07:00
nshrivas
ff2d8591db Release 5.2.0.127K
Release 5.2.0.127K

Change-Id: I5a2df3e6a5fa5bf3038536971bdc62d5033a4043
CRs-Fixed: 774533
2019-03-24 14:54:48 -07:00
Abhishek Singh
bfaebe3372 qcacld-3.0: Fix opportunistic timer start issue in 2x2 DBS mode
In 2x2 DBS mode once STA/SAP change channel from 2.4Ghz to 5Ghz,
policy_mgr_get_current_pref_hw_mode_ptr never return
PM_SINGLE_MAC_UPGRADE to start the opportunistic timer to switch to
single mac mode.

Fix is to check and start opportunistic timer once connection info are
updated. Also start opportunistic timer before
check for SAP to change channel as when SAP change channel it should
stop opportunistic timer and set required HW mode.
If single mac mode is required after channel switch it will start
opportunistic timer again in channel switch callback.

Change-Id: Id6bbc7ea51ba8147e517e7e7bf2b14931c95ea44
CRs-Fixed: 2419645
2019-03-24 14:54:48 -07:00
Nachiket Kukade
8de3c7bcb2 qcacld-3.0: Move interface name related modules to NAN OS IF
NAN Datapath vendor commands include a vendor attribute that
contains interface name string. Only NAN Datapath interface
needs the modules that return vdev object from interface name
and vice versa. Presently these modules are part of in cmn
utils under UMAC. They're accessing OS IF private structures
which is a layering violation. So move these modules to the
NAN OS IF files where they're appropriate.

Move interface name related modules to NAN OS IF files.

Change-Id: I643bf597895e172fa501ada18ebc13ffa2e144e3
CRs-Fixed: 2284200
2019-03-24 14:54:43 -07:00
nshrivas
e30041a794 Release 5.2.0.127J
Release 5.2.0.127J

Change-Id: I6625dd46d3b99dd8986c826e9cac95f1d5a0950d
CRs-Fixed: 774533
2019-03-22 17:39:29 -07:00
Jeff Johnson
6795c3a9aa qcacld-3.0: dp: 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 dp replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I6c5589e430bdd8687122337fe88fb84ba72bab60
CRs-Fixed: 2418391
2019-03-22 17:39:28 -07:00
nshrivas
cd956a839a Release 5.2.0.127I
Release 5.2.0.127I

Change-Id: I636c0afd77e104654d6f621de6dee7748554e9aa
CRs-Fixed: 774533
2019-03-22 16:11:24 -07:00
Jeff Johnson
9cb757b963 qcacld-3.0: Rename HDD identifier channelEnabledState
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier channelEnabledState to be compliant.

Change-Id: I26a676e216b2a8c5964f3e903cbda884769db284
CRs-Fixed: 2418191
2019-03-22 16:11:20 -07:00
Jeff Johnson
603ef85889 qcacld-3.0: Rename HDD identifier fValidChannel
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier fValidChannel to be
compliant.

Change-Id: Ic591e0e194b3444499518f7fd3c273adb6189423
CRs-Fixed: 2418190
2019-03-22 16:11:16 -07:00
Jeff Johnson
a8fef4e3a4 qcacld-3.0: Rename HDD identifier fEnableSNRMonitoring
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier fEnableSNRMonitoring to
be compliant.

Change-Id: Ic613f39d0d267ba7e8cb72cd0cc3bf261a029278
CRs-Fixed: 2418189
2019-03-22 16:11:11 -07:00
nshrivas
b4ad9859ea Release 5.2.0.127H
Release 5.2.0.127H

Change-Id: I3d310eccb15a0e044f4a0e4c526837508adc2c98
CRs-Fixed: 774533
2019-03-22 13:33:35 -07:00
Ashish Kumar Dhanotiya
6025c701f7 qcacld-3.0: Cache supported mode of connected STA for SAP
Currently in case of SAP, supported mode of station received
in assoc request is not getting cached.

Add support to cache the supported mode of station received
in assoc request request in sta_info.

Change-Id: I9820ae2d65fc529a1ab16424f6732fd273da3ae0
CRs-fixed: 2419957
2019-03-22 13:33:34 -07:00
nshrivas
557c398384 Release 5.2.0.127G
Release 5.2.0.127G

Change-Id: I9d25f086c148d6fcf4f8510419e45d5535dca1e1
CRs-Fixed: 774533
2019-03-22 11:41:59 -07:00
Dustin Brown
3da3a83e84 qcacld-3.0: Remove hdd_init_deinit_lock
hdd_init_deinit_lock has been obsoleted by the addition and integration
of the Driver Synchronization feature. Remove hdd_init_deinit_lock.

Change-Id: Ia1b9e4279f42023ba2c956224ceabd02d8b4c6d4
CRs-Fixed: 2420766
2019-03-22 11:41:58 -07:00
jiad
42cc9fd76b qcacld-3.0: Fix WDI 3.0 ethernet header offset
Upon client connection to SAP, WLAN IPA will pass a message
containing client MAC address and ethernet header offset to
IPA driver. Per WDI 3.0, there's no frag_header and
ipa_header prepended in front of ethernet header. Thus
ethernet header length is passed to IPA driver as header
length during interface registration. But in per-client
message, offset passed to IPA driver still accounts for
length of frag_header and ipa_header. As a result packet
queued to event ring will have wrong ethernet header.
And this causes IPA to WLAN TX HW path not work as expected.

Fix is to define frag_header and ipa_header as 0 sized
structure for WDI 3.0 so that ethernet header offset will
be 0.

Change-Id: I58cdf78732ad2909bf89058f2a5bc24c42f841d2
CRs-Fixed: 2421315
2019-03-22 11:41:53 -07:00
nshrivas
1002fc0ea6 Release 5.2.0.127F
Release 5.2.0.127F

Change-Id: I520df78d05ffa6a1e1b0639fcf9d915a50aaad93
CRs-Fixed: 774533
2019-03-22 08:47:16 -07:00
Dustin Brown
a20bad5218 qcacld-3.0: Migrate bus_bw to qdf_periodic_work
The bus bandwidth compute is a periodic activity that calculates the
required DDR bandwidth needed by the wlan driver. Currently it is
implemented using a spinlock, a flag, a timer, and a kernel work.
qdf_periodic_work effectively implements the same behavior, so use it
instead.

Change-Id: I1c71a1eb430317d2ac167b7c1ba94fb190deef4a
CRs-Fixed: 2410047
2019-03-22 08:47:15 -07:00
Will Huang
7fa97f1cf4 qcacld-3.0: Purge neighbor report cache if unsolicited
Propagation from qcacld-2.0 to qcacld-3.0

If AP sends unsolicited neighbor reports to station proactively,
the cached neighbor report list will grow longer and longer.

Fix it by purging the cache on reception of unsolicited neighbor report.

Change-Id: I2458607041caeb84cb553aa1b9fc6f4029a5cf1c
CRs-Fixed: 2419615
2019-03-22 08:47:11 -07:00
nshrivas
1c3e0802eb Release 5.2.0.127E
Release 5.2.0.127E

Change-Id: I5ccc056cba9d8a98c4dc9c3b5df053df41ccd559
CRs-Fixed: 774533
2019-03-22 07:13:22 -07:00
Srinivas Girigowda
c54199d0a1 qcacld-3.0: Remove obsolete macros/enums/structures from the code
Remove obsolete macros/enums/structures from the code.

Change-Id: I26b68ff99bbd8aa1260f93bebd61875b16c34821
CRs-Fixed: 2420837
2019-03-22 07:13:21 -07:00
nshrivas
e2ff47d602 Release 5.2.0.127D
Release 5.2.0.127D

Change-Id: Ie9986352645f445ad9e69c3c836ebae3ce5611c9
CRs-Fixed: 774533
2019-03-22 03:08:57 -07:00
Jeff Johnson
4cfe6cc8b9 qcacld-3.0: sap: 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 sap replace any such comparisons with logical
operations performed on the pointer itself.

Change-Id: I0f738f58e64fdf20957d57775c3570fb4ccfc9f7
CRs-Fixed: 2418389
2019-03-22 03:08:57 -07:00
Ashish Kumar Dhanotiya
16fd4201f9 qcacld-3.0: Add support to configure ito repeat count
Currently there is no support to configure ito repeat
count when driver enters into wow mode.

Add support to configure ito repeat count with ini
gItoRepeatCount when driver enters into wow mode.

CRs-fixed: 2419137
Change-Id: I62d7e7df12342e9743c26e0147851347214a9ce7
2019-03-22 03:08:52 -07:00
Jiani Liu
00d2dc0cb8 qcacld-3.0: Disable coex priorities configuration module for mainline
Disable coex priorities configuration module by default for mainline

Change-Id: I1b640b4fc53b654913ef8fd2a13171f284ce692f
CRs-Fixed: 2410493
2019-03-22 03:08:47 -07:00
nshrivas
195b2933aa Release 5.2.0.127C
Release 5.2.0.127C

Change-Id: Ia348f2144c4bf7f6b90d3e5bbe3431de6f5d71be
CRs-Fixed: 774533
2019-03-21 23:04:30 -07:00
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