Commit Graph

1681 Commits

Author SHA1 Message Date
Qun Zhang
043635a34f qcacld-3.0: Update wiphy band info after FW ready event is received
The driver can be configured to support only 2.4 GHz operation
via INI setting "BandCapability=1". Currently, when the driver
is configured in this manner, the RF bands attribute in the
WPS IE in Probe Request frames incorrectly indicates the driver
can support both 2.4 GHz and 5 GHz operation. This is because
the logic used to configure the wiphy->bands occurs before the
INI file has been processed, and hence the BandCapability is
not properly applied. To address this issue relocate the logic
that updates the wiphy->bands until after the INI file has been
processed.

Wiphy supported band info is also dependent on FW capabilities,
so update wiphy band info after FW ready event is received.

Change-Id: Ic210cafd730f56feb9df06d8ad5fcd8cca8355fc
CRs-Fixed: 2377343
2019-03-31 20:56:52 -07:00
Manjunathappa Prakash
f5b6f5f4b7 qcacld-3.0: Add INI config option to control WMI credits
Add INI option to control consecutive WMI writes. Setting this 1
will essentially serializes the HTC WMI command writes.

Change-Id: I8e28990127f3e4dac2fa91ac9b9df87eed321a2a
CRs-Fixed: 2424795
2019-03-29 11:05:38 -07:00
Arun Kumar Khandavalli
deda5a812c qcacld-3.0: Add support to improve coex logging
Add support to get the various Coex data from the debugfs.
This commit adds the support to get the various coex data:
            * COEX STATE
            * COEX DPWB STATE
            * COEX TDM STATE
            * COEX IDRX STATE
            * COEX ANTENNA SHARING STATE
The specific state information can be read via the debugfs.
Example to read the COEX STATE logging:
            sm6150:/ # cat /sys/kernel/debug/wlan/mws_coex_state
                    vdev_id = 0
                    coex_scheme_bitmap =  0
                    active_conflict_count = 0
                    potential_conflict_count = 0
                    chavd_group0_bitmap = 0
                    chavd_group1_bitmap = 0
                    chavd_group2_bitmap = 0
                    chavd_group3_bitmap = 0

Change-Id: I92272ad7edf44df22730ac0fa992d876840ba632
CRs-Fixed: 2413943
2019-03-29 00:47:53 -07:00
Srinivas Girigowda
a47b45f94f qcacld-3.0: Consolidate multiple MAC_ADDR_LEN to QDF_MAC_ADDR_SIZE
Consolidate multiple (redundant) MAC_ADDR_LEN to QDF_MAC_ADDR_SIZE
PMO_80211_ADDR_LEN
IEEE80211_ADDR_LEN
ETHER_ADDR_LEN
HTT_MAC_ADDR_LEN
ETHERNET_ADDR_LEN
DEFRAG_IEEE80211_ADDR_LEN
OL_TXRX_MAC_ADDR_LEN
QCSAP_ADDR_LEN

CRs-Fixed: 2406592
Change-Id: I829c5799e4724f81af996b23fdd4ea03f4728bc4
2019-03-28 16:49:58 -07:00
Dustin Brown
f688ea13e2 qcacld-3.0: Remove hdd_context.iface_change_lock
The hdd_context.iface_change_lock field has been obsoleted by the
addition and integration of the Driver Synchronization feature. Remove
the hdd_context.iface_change_lock field

Change-Id: Ib0a184476735c6ee7eb70c307557e91d33538429
CRs-Fixed: 2423620
2019-03-27 12:51:54 -07:00
Dustin Brown
3f49e5e9b1 qcacld-3.0: Remove start/stop modules in progress
With the addition and integration of the Driver Synchronization feature,
it is no longer necessary to keep track of whether the driver modules
are starting or stopping. Remove the driver modules starting/stopping
flags.

Change-Id: I4718eedfaa1305780c5fcf6a2ff04114b210a911
CRs-Fixed: 2423618
2019-03-27 12:51:49 -07:00
Dustin Brown
e0a77273a9 qcacld-3.0: Remove hdd_ctx.con_mode_flag
hdd_ctx.con_mode_flag has been obsoleted by the addition and integration
of the Driver Synchronization feature. Remove hdd_ctx.con_mode_flag.

Change-Id: I33c47997e9f473e19ed96d7cd1cce00eb3b2365f
CRs-Fixed: 2423617
2019-03-27 12:51:44 -07:00
Dustin Brown
8d8ab30f21 qcacld-3.0: Migrate to qdf_delayed_work
qdf_delayed_work_t has been superseded by qdf_delayed_work. Replace all
instances as appropriate.

Change-Id: I83f0dcec050bc9f91624048bd171f9a86b0394b5
CRs-Fixed: 2420202
2019-03-26 01:24:29 -07:00
Jeff Johnson
8f8ceb9ac8 qcacld-3.0: Replace typedef tsap_config_t
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tsap_config_t typedef does not
meet any of those criteria, so replace it with the underlying struct.

Change-Id: I95d9ad30d9af35dc4572d70c555b24b0285f8b2d
CRs-Fixed: 2422212
2019-03-25 22:17:19 -07:00
Jeff Johnson
9fa537773a qcacld-3.0: Fix hdd_register_tx_flow_control() prototype
The prototype for hdd_register_tx_flow_control() does not exactly
match either the documentation or the implementation, so rename the
flowControl parameter to be consistent, as well as to be compliant
with the coding standard.

Change-Id: I2a65fc78febef5bd44b38e0b7ff3fa5968a6e214
CRs-Fixed: 2422193
2019-03-25 12:39:36 -07:00
Jeff Johnson
cc9c7bbbc1 qcacld-3.0: Replace camelCase in struct p2p_app_set_ps
The Linux Coding Style frowns upon mixed-case names so rename members
ctWindow and psSelection in struct p2p_app_set_ps to be compliant.

Change-Id: If5156a8dd6203fb530a164447d458ac3e55e233a
CRs-Fixed: 2422192
2019-03-25 12:39:21 -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
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
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
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
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
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
Srinivas Girigowda
cf161406dd qcacld-3.0: Use converged qcacmn macros (part 1)
Replace the existing qcacld-3.0 macros with qcacmn converged
macros.

Change-Id: Ie05f396fcd2e01cf86256f25dbc171bbdf763da9
CRs-Fixed: 2416429
2019-03-19 02:24:23 -07:00
Jeff Johnson
aa6cbb8cb2 qcacld-3.0: Rename HDD identifier macAddr
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier macAddr to be compliant.

Change-Id: I73573fced510fe2e4d6a30deacd2d3cef0187ee1
CRs-Fixed: 2417584
2019-03-18 22:20:11 -07:00
Sourav Mohapatra
9c398f06e5 qcacld-3.0: Populate peer stats in HDD
Extract and populate peer stats in HDD and then send the stats to the
userspace via station_info in get_station command

Change-Id: Ia0077aadd33095210b1022a8e5a4ba77e9a9b739
CRs-Fixed: 2397649
2019-03-18 09:52:49 -07:00
stonez
2d68648140 qcacld-3.0: Add MPTA helper support
Due to PTA matser limitation, zigbee joining network success rate
is low while wlan is working. Wlan host driver need to configure
some parameters including Zigbee state and specific WLAN periods
to enhance PTA master. This mechanism is called MPTA helper.
Vendor subcommand QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG
is added to realize this feature. NL attributes
qca_mpta_helper_vendor_attr is used to deliver parameters from
uplayer to host driver.

Change-Id: Ic76130e4b92c88e8034f6a0c6c0447c9c6dee945
CRs-Fixed: 2407801
2019-03-15 07:46:59 -07:00
Jeff Johnson
784efe29c7 qcacld-3.0: Rename HDD identifier RSNAuthType
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier RSNAuthType to be compliant.

Change-Id: If93efea4637d88a8c59f376fcc905aa4a40de574
CRs-Fixed: 2415550
2019-03-14 13:01:15 -07:00
Jeff Johnson
de474b4f6e qcacld-3.0: Rename HDD identifier wmmPrevTrafficCnt
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmPrevTrafficCnt to be compliant.

Change-Id: Icf8e455e81145c5319f943308c078db7ca01c8b5
CRs-Fixed: 2414525
2019-03-13 09:31:53 -07:00
Jeff Johnson
154193b1ac qcacld-3.0: Rename HDD identifier wmmInactivityTime
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmInactivityTime to be compliant.

Change-Id: Iceffbf91bba02635d0174fa25db3d0401e450146
CRs-Fixed: 2414524
2019-03-13 09:31:48 -07:00
Jeff Johnson
a2b8b4783f qcacld-3.0: Rename HDD identifier wmmInactivityTimer
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmInactivityTimer to be compliant.

Change-Id: I23b0d28adaa95cc6f127c6309788366f259a4a88
CRs-Fixed: 2414523
2019-03-13 09:31:43 -07:00
Jeff Johnson
68a8a9a356 qcacld-3.0: Rename HDD identifier wmmAcUapsdDirection
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcUapsdDirection to be compliant.

Change-Id: Ifd22bf0a1ae974ff1425d88e15a1702ddad3d2b7
CRs-Fixed: 2414522
2019-03-13 09:31:38 -07:00
Jeff Johnson
48fffec448 qcacld-3.0: Rename HDD identifier wmmAcUapsdSuspensionInterval
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcUapsdSuspensionInterval to be compliant.

Change-Id: Ia309e77f9ee13251b84dc4f825a19d0222dfd648
CRs-Fixed: 2414521
2019-03-13 09:31:33 -07:00
Jeff Johnson
e8f3a77500 qcacld-3.0: Rename HDD identifier wmmAcUapsdServiceInterval
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcUapsdServiceInterval to be compliant.

Change-Id: I93337f46663e40521b6baf467abcff59cca98cc8
CRs-Fixed: 2414520
2019-03-13 09:31:28 -07:00
Jeff Johnson
a86be85093 qcacld-3.0: Rename HDD identifier wmmAcIsUapsdEnabled
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcIsUapsdEnabled to be compliant.

Change-Id: I4f109c7806881b358886e24e7876aac7c24918fb
CRs-Fixed: 2414519
2019-03-13 09:31:23 -07:00
Jeff Johnson
64d94dd5d7 qcacld-3.0: Rename HDD identifier wmmAcTspecInfo
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcTspecInfo to be compliant.

Change-Id: I707b0351effc4a6d5d2554a283c519c89b0f0b42
CRs-Fixed: 2414518
2019-03-13 09:31:19 -07:00
Jeff Johnson
fd29709c79 qcacld-3.0: Rename HDD identifier wmmAcUapsdInfoValid
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcUapsdInfoValid to be compliant.

Change-Id: I54960d0902f3a1396d9c24a315d2438c584a323b
CRs-Fixed: 2414517
2019-03-13 00:07:09 -07:00
Jeff Johnson
0698e6658c qcacld-3.0: Rename HDD identifier wmmAcTspecValid
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcTspecValid to be compliant.

Change-Id: I36d38c2774ab062e81d52581fee3d7c3bebad9a5
CRs-Fixed: 2414516
2019-03-13 00:07:04 -07:00
Jeff Johnson
a5548975c6 qcacld-3.0: Rename HDD identifier wmmAcAccessAllowed
The Linux Coding Style frowns upon mixed-case names
so rename HDD identifier wmmAcAccessAllowed
to be compliant.

Change-Id: I83ea1945057ce281f5862feefaf4e09cbd2fe948
CRs-Fixed: 2414515
2019-03-13 00:07:00 -07:00
Jeff Johnson
c77123d656 qcacld-3.0: Rename HDD identifier wmmAcAccessGranted
The Linux Coding Style frowns upon mixed-case names
so rename HDD identifier wmmAcAccessGranted
to be compliant.

Change-Id: I23521ad0a8184e25b4e5ed88899b11bb2e56318c
CRs-Fixed: 2414514
2019-03-13 00:06:55 -07:00
Jeff Johnson
1b48ccbb17 qcacld-3.0: Rename HDD identifier wmmAcAccessFailed
The Linux Coding Style frowns upon mixed-case names
so rename HDD identifier wmmAcAccessFailed
to be compliant.

Change-Id: I149b1d76a799b87e8fbf6814280c760b0a9e0d26
CRs-Fixed: 2414513
2019-03-13 00:06:51 -07:00
Jeff Johnson
e5b75be368 qcacld-3.0: Rename HDD identifier wmmAcAccessPending
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcAccessPending to be compliant.

Change-Id: I1daf7585bc82f11887502b4664c6735570f52939
CRs-Fixed: 2414512
2019-03-13 00:06:46 -07:00
Jeff Johnson
12ccaf6a14 qcacld-3.0: Rename HDD identifier wmmAcAccessNeeded
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcAccessNeeded to be compliant.

Change-Id: I45a447f0a0a464d543a9da06cf0da1e9854a32f1
CRs-Fixed: 2414511
2019-03-13 00:06:41 -07:00
Jeff Johnson
30ac84f123 qcacld-3.0: Rename HDD identifier wmmAcAccessRequired
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcAccessRequired to be compliant.

Change-Id: I7492d6e53624d741a87a3ebbb414d48139d0c8f0
CRs-Fixed: 2414510
2019-03-13 00:06:37 -07:00
Jeff Johnson
8f656c64b5 qcacld-3.0: Rename HDD identifier wmmContextList
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmContextList to be compliant.

Change-Id: Ia48fa11624e9f4413871a1f443503cbacc86f09f
CRs-Fixed: 2412983
2019-03-12 00:56:02 -07:00
Jeff Johnson
12e1233a74 qcacld-3.0: Rename HDD identifier wmmAcStatus
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcStatus to be compliant.

Change-Id: I64f0ea0d96253594ddc62cce9601e331470f0d1a
CRs-Fixed: 2412982
2019-03-12 00:55:57 -07:00
Jeff Johnson
7f63ac9d1b qcacld-3.0: Rename HDD identifier wmmQosConnection
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmQosConnection to be compliant.

Change-Id: Ib23c8cca8d1adbb2fcc86686477aa5470e1b761e
CRs-Fixed: 2412981
2019-03-12 00:55:52 -07:00
Jeff Johnson
26ef71e02a qcacld-3.0: Rename HDD identifier wmmQap
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmQap to be compliant.

Change-Id: I016bb2ce37d46ad246b89c95b0062a7f4a22f880
CRs-Fixed: 2412980
2019-03-12 00:55:48 -07:00
Jeff Johnson
7d4a0b5f60 qcacld-3.0: Rename HDD identifier wmmAcSetupImplicitQos
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier wmmAcSetupImplicitQos to be compliant.

Change-Id: I9da004d4652e1b827f99368ac0ffa4cce33d2fda
CRs-Fixed: 2412976
2019-03-11 21:55:43 -07:00
Jeff Johnson
5b05251b60 qcacld-3.0: Rename HDD identifier lastStatus
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier lastStatus to be compliant.

Change-Id: I7793b0023dcc6aca7dd4ad0129bc2318cf1f5649
CRs-Fixed: 2412971
2019-03-11 21:55:20 -07:00
Jeff Johnson
104f70eec7 qcacld-3.0: Rename HDD identifier qosFlowId
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier qosFlowId to be compliant.

Change-Id: I21aa9b3dacc5a23014e6ce05c34de84b17c10b62
CRs-Fixed: 2412970
2019-03-11 21:55:15 -07:00
Jeff Johnson
239ff2e433 qcacld-3.0: Rename HDD identifier acType
The Linux Coding Style frowns upon mixed-case names so rename HDD
identifier acType to be compliant.

Change-Id: I903779cd8fca3d7a630343d44c324d3270e5a197
CRs-Fixed: 2412969
2019-03-11 21:55:10 -07:00
Jeff Johnson
a9f092a1eb qcacld-3.0: Rename HDD identifier pGranted
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pGranted to be compliant.

Change-Id: Iccc58b730e381928b510a35c4d40addd1960201d
CRs-Fixed: 2412968
2019-03-10 16:37:55 -07:00
Jeff Johnson
8d4621bc8d qcacld-3.0: Rename HDD identifier pContext
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD identifier pContext to be compliant.

Change-Id: I1fe6d309d9b29703ca9f643cc0a8200fc4964fc2
CRs-Fixed: 2412966
2019-03-10 15:04:47 -07:00
Jeff Johnson
55d2ab4aa4 qcacld-3.0: Replace hdd_get_adapter_by_sme_session_id()
Currently both functions hdd_get_adapter_by_sme_session_id() and
hdd_get_adapter_by_vdev() have the same functionality. Since
hdd_get_adapter_by_vdev() uses current terminology, replace all
instances of hdd_get_adapter_by_sme_session_id().

Change-Id: Id94604ae744ec03faa41600db4fc618ff99989b1
CRs-Fixed: 2412963
2019-03-10 15:04:33 -07:00