Commit Graph

875 Commits

Author SHA1 Message Date
Varun Reddy Yeturu
b60d5227da qcacld-3.0: Tune config parameters for scan rest time
Fine tune the scan rest time configuration parameters,
gRoamRestTimeMin and gNeighborScanTimerPeriod to 50ms and
100ms respectively for better power efficiency.

Change-Id: Ia6edb87dbb0abf4771613a028d711f4f7a4e0f41
CRs-Fixed: 2120683
2017-10-16 01:56:48 -07:00
Mukul Sharma
07bd875c18 qcacld-3.0: Acquire wakelock until change iface timer expires
Currently, when wifi is disabled from UI, and if the device goes
to suspend before the interface change timer expires, then until
the next APPS wakeup wifi remains enabled hence power numbers are
high.
As a part of fix, Host acquire wakelock when it start change
interface timer.

Change-Id: I41662596725315a6cfe185ee23ae889b69938e0b
CRs-Fixed: 2091154
2017-10-12 14:02:31 -07:00
Himanshu Agarwal
8bcec57472 qcacld-3.0: Add INI support for best candidate algo and RSSI scoring
1) Currently all the parameter to decide best candidate are chosen
   as by default.
   Add INI support for those parameters to change values on basis
   of performance.
2) At the time of calculating best candidate score, rssi consider
   bucket size, good rssi, bad rssi, good rssi percentage from total
   rssi percentage, bad rssi percentage from total percentage.
   Configure these all params from ini.

Change-Id: I808a40486473fcbb161c12fbd369b3b846beb8c2
CRs-Fixed: 2121735
2017-10-12 14:02:08 -07:00
Jeff Johnson
6dff3eeb62 qcacld-3.0: Fix long lines in wlan_hdd_main.h
Checkpatch has detected instances of "line over 80 characters" so fix
them.

Change-Id: Ia4241c997a01979bd4e5aac32920f780641bcb01
CRs-Fixed: 2122693
2017-10-12 14:01:01 -07:00
Jeff Johnson
e58271f05c qcacld-3.0: Rename struct sSirBssDescription
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct sSirBssDescription to align with
the Coding Style.

Note that it will be a separate exercie to replace instances of the
tSirBssDescription and tpSirBssDescription typedefs.

Change-Id: Ia698c5290e719ac6eef22cdee56e8954e5f61146
CRs-Fixed: 2122503
2017-10-12 14:00:41 -07:00
Jeff Johnson
dcf84ce461 qcacld-3.0: hdd: Fix block comment issues
Checkpatch reported multiple block comment issues in hdd including:
- Block comments use * on subsequent lines
- Block comments should align the * on each line
- Block comments use a trailing */ on a separate line

Fix those issues.

Change-Id: Ic2b74c520ffb4be1c82fad6f6bdd0a9474d4b506
CRs-Fixed: 2121930
2017-10-12 14:00:31 -07:00
Jeff Johnson
33a079296b qcacld-3.0: hdd: Remove unnecessary void function return statements
Checkpatch reported multiple instances of "void function return
statements are not generally useful" in hdd, so remove them.

Change-Id: Ia6ac669bdb9eaa71f9a68f1ef20f230acd59bf76
CRs-Fixed: 2121928
2017-10-12 14:00:27 -07:00
Ganesh Kondabattini
479a8aeed8 qcacld-3.0: Reset limit off channel parameters after disconnection
Reset the limit off channel parameters after disconnection, otherwise
FW is going to use these settings for future connections on the same
interface.

CRs-Fixed: 2105301
Change-Id: I00a408c1d71cdf261e5718a67d9417ac3fcd133c
2017-10-12 13:59:04 -07:00
Naveen Rawat
c8096b4690 qcacld-3.0: Fix values for CFG_11AG_NUM_TX_CHAIN_NAME
Fix min, max and default values for CFG_11AG_NUM_TX_CHAIN_NAME

Change-Id: I50c84f08376fd5955206c02693e449c24ff364b8
CRs-Fixed: 2117874
2017-10-12 13:57:37 -07:00
Yu Wang
66a250bbb5 qcacld-3.0: add ini config for PTP options
Add ini param 'gtsf_ptp_options' to control
PTP options, it's a bitmap:
bit0 - PTP_OPT_RX(0x1)
  set this bit to enable RX time stamping
bit1 - PTP_OPT_TX(0x2)
  set this bit to enable TX time stamping
bit2 - PTP_OPT_RAW(0x4)
  set this bit to use raw time as timestamp
bit3 - TSF_DBG_FS(0x8)
  set this bit to add device attriubte 'tsf' for iface

The default value of gtsf_ptp_options is 0xf

Propagated from qcacld-2.0.

Change-Id: Ie53d503bdd2e85790502583a238ee138f4bcf6c6
CRs-Fixed: 2079466
2017-10-12 13:57:17 -07:00
Jeff Johnson
04e00085e4 qcacld-3.0: Rename pBeaconIes
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pBeaconIes to align with the Coding
Style.

Change-Id: Ib1d48cd0db2a497c68c3596230b22e169ed0cc8f
CRs-Fixed: 2121264
2017-10-12 13:56:57 -07:00
Jeff Johnson
fd0608595b qcacld-3.0: hdd: Rename pRoamInfo
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pRoamInfo to align with the Coding
Style.

Change-Id: I39f76a4e11fb26c5ab4279ae0b02dddadd06a83b
CRs-Fixed: 2121188
2017-10-12 13:56:53 -07:00
Jeff Johnson
d377dce175 qcacld-3.0: Rename pHddStaCtx
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHddStaCtx to align with the Coding
Style.

Change-Id: I508816b354eb592305cb238f7604ef39586c19b2
CRs-Fixed: 2121162
2017-10-12 13:56:46 -07:00
Jeff Johnson
5c19adea1a qcacld-3.0: Rename pHostapdState
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHostapdState to align with the Coding
Style.

Change-Id: I11f20591272265ad2e0e9d1f5f8ae1243d3ecd5b
CRs-Fixed: 2121138
2017-10-12 13:56:43 -07:00
Jeff Johnson
9bf2497293 qcacld-3.0: Rename pHddApCtx
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHddApCtx to align with the Coding
Style.

Change-Id: I9c209be206d9e453ec2c5adc7803126639d06b84
CRs-Fixed: 2121131
2017-10-12 13:56:27 -07:00
Jeff Johnson
9c4f93d221 qcacld-3.0: Rename pHostapdAdapter
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHostapdAdapter to align with the Coding
Style.

Change-Id: I18a74117ae47ad05a1c46b50a14fcb64347f1c07
CRs-Fixed: 2121120
2017-10-12 13:56:24 -07:00
Jeff Johnson
18ef284298 qcacld-3.0: Fix long lines in wlan_hdd_wowl.h
Checkpatch has detected multiple instances of "line over 80
characters" so fix them.

Change-Id: Ie9b3a517b97c0f70f43e7991c0576eaf1e05ec38
CRs-Fixed: 2120622
2017-10-09 06:45:13 -07:00
Jeff Johnson
de353b83a0 qcacld-3.0: Fix long line in wlan_hdd_wmm.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I38897ce96611505feaa0eda21f96ecb263359800
CRs-Fixed: 2120620
2017-10-09 06:45:10 -07:00
Jeff Johnson
4e63267a77 qcacld-3.0: Fix long line in wlan_hdd_wext.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I093b691d0e05fa739d3c31a1780296ce6102dbd8
CRs-Fixed: 2120619
2017-10-09 06:45:07 -07:00
Jeff Johnson
811f47d567 qcacld-3.0: Fix long line in wlan_hdd_tx_rx.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: Icefa4f57c2307b58a618be181478aedac3d1e5c8
CRs-Fixed: 2120618
2017-10-09 06:45:04 -07:00
Jeff Johnson
ae9adc89a0 qcacld-3.0: Fix long line in wlan_hdd_tdls.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I84f732a7ce5aed709d3992706ad15131b23eb391
CRs-Fixed: 2120627
2017-10-09 06:45:00 -07:00
Jeff Johnson
4fbee2fdce qcacld-3.0: Fix long line in wlan_hdd_power.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I9a139de0aaeb0f6f199906d98fb1dd2d84dbb635
CRs-Fixed: 2120628
2017-10-09 06:44:57 -07:00
Jeff Johnson
af007eaf97 qcacld-3.0: Fix long line in wlan_hdd_ftm.h
Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: Ifbf847db86aac8cb435103a2634e3c8bfa7fab20
CRs-Fixed: 2120624
2017-10-09 06:44:54 -07:00
Hanumanth Reddy Pothula
ab3959506f qcacld-3.0: Update ini param g_auto_detect_power_failure_mode
Update ini param g_auto_detect_power_failure_mode to incorporate below
values,
0 - Don't register wow wakeup event and FW crashes on power failure
1 - Register wow wakeup event and FW sends failure event to host on
    power failure
2 - Don't register wow wakeup event and FW silently rejuvenate on
    power failure
3 - Don't register wow wakeup event and the auto power failure detect
    feature is disabled in FW.

Change-Id: I8a704954ecbacadbc035c1523fa41a18b6300f66
CRs-Fixed: 2087144
2017-10-09 03:47:52 -07:00
Jeff Johnson
aafc84a18e qcacld-3.0: Fix long lines in wlan_hdd_conc_ut.h
Checkpatch has detected multiple instances of "line over 80
characters" so fix them.

Change-Id: I240fcea5af2cfb4f3c1b660784fc7d37bc948c3c
CRs-Fixed: 2120625
2017-10-06 18:11:51 -07:00
Jeff Johnson
53367842cb qcacld-3.0: Fix long lines in wlan_hdd_assoc.h
Checkpatch has detected multiple instances of "line over 80
characters" so fix them.

Change-Id: If7b0e259a4399cc829fa4d0186c4699ae7980706
CRs-Fixed: 2120617
2017-10-06 18:11:39 -07:00
Poddar, Siddarth
348727860d qcacld-3.0: Add new data stall detection module in hdd
Add data stall detection module in hdd which handles data
stall reported by host or fw and take necessary recovery
steps based on the data stall type.

Change-Id: Idf6c43f55d1bc115a0c06b4c6ef766ff3ed09bee
CRs-Fixed: 2090643
2017-10-06 12:27:29 -07:00
Jeff Johnson
7b92c0fdaf qcacld-3.0: Rename pAdapter in wlan_hdd_main.h
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: Id6ab1b413a3eec66c88dce52ce14dd3693d15a34
CRs-Fixed: 2119860
2017-10-06 04:25:24 -07:00
Srinivas Girigowda
bc8454e978 qcacld-3.0: Properly advertise mem_dump feature support
Currently, mem_dump feature support is advertized just based
on the compile macro, if the firmware does not support this
feature, still code ends up sending true to the user space.

Fix this by properly advertising the mem_dump feature support
based on the the FW support.

Change-Id: I4d601f764c6598c51c48d43e24e15fb6c35875bd
CRs-Fixed: 2077931
2017-10-06 00:13:02 -07:00
Jeff Johnson
f23a89b88e qcacld-3.0: Rename pAdapter in wlan_hdd_wext.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: I262e70dfaf24e11c61c848b8d53e39f9be838baa
CRs-Fixed: 2119844
2017-10-05 20:54:47 -07:00
Jeff Johnson
ba38834945 qcacld-3.0: Rename pAdapter in wlan_hdd_assoc.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: If28820c6caaf8e61d022ade48787baeed8413c8a
CRs-Fixed: 2119859
2017-10-05 20:54:43 -07:00
Jeff Johnson
d900b9d35e qcacld-3.0: Rename pAdapter in wlan_hdd_debugfs.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: Id086072eff4d1a55e316a3d6b32b3127385eebd8
CRs-Fixed: 2119858
2017-10-05 20:54:37 -07:00
Jeff Johnson
19b66e8ef2 qcacld-3.0: Rename pAdapter in wlan_hdd_p2p.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: Ib4f4b0f6c726c1ed49d7a22bd9ead2ce3975e882
CRs-Fixed: 2119851
2017-10-05 20:54:30 -07:00
Jeff Johnson
d31ab6a813 qcacld-3.0: Rename pAdapter in wlan_hdd_softap_tx_rx.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: I845eae808defedc3895f98ee15554ffca591bf00
CRs-Fixed: 2119861
2017-10-05 20:54:25 -07:00
Jeff Johnson
6bff8949cf qcacld-3.0: Rename pAdapter in wlan_hdd_tdls.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: Ifdac5a6191cbbcde80395d26c5288964a7dda4d4
CRs-Fixed: 2119846
2017-10-05 20:54:21 -07:00
Jeff Johnson
8048686785 qcacld-3.0: Rename pAdapter in wlan_hdd_tx_rx.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: Ibe7b2055276d765af2dd72033bd04ddf43ae3494
CRs-Fixed: 2119845
2017-10-05 20:54:18 -07:00
Jeff Johnson
a7e2e00d18 qcacld-3.0: Rename pAdapter in wlan_hdd_wmm.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: Ia4b1ee1717f0d0bb44583e967e5dd8290f679b29
CRs-Fixed: 2119843
2017-10-05 20:54:16 -07:00
Jeff Johnson
d184d2b06d qcacld-3.0: Rename pAdapter in wlan_hdd_wowl.[ch]
The Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so rename pAdapter to align
with the Coding Style.

Change-Id: I5d56195378cf9507d00b2affe1c8efc1793a9510
CRs-Fixed: 2119842
2017-10-05 20:54:13 -07:00
Vignesh Viswanathan
cc7f1b909e qcacld-3.0: Add configuration option to enable/disable FILS
Add configuration option g_is_fils_enabled to enable/disable FILS.
Driver will update the capability to supplicant based on this
configuration.

Change-Id: I939d59981e1a847a7d113cd015135d76f7d9992e
CRs-Fixed: 2050366
2017-10-05 16:11:47 -07:00
Jeff Johnson
44d8af980f qcacld-3.0: Rename struct hdd_roc_req pointer fields
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct hdd_roc_req pointer fields
pAdapter and pRemainChanCtx to align with the Coding Style.

Change-Id: I1fc92c4b8de1ce47d1484a88982acccca94a0732
CRs-Fixed: 2119758
2017-10-05 05:37:56 -07:00
Jeff Johnson
57eb2730b2 qcacld-3.0: Rename hdd_adapter_list_node_t field pAdapter
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename hdd_adapter_list_node_t field pAdapter
to align with the Coding Style.

Change-Id: I809da2134368f6ef9fc245b54dc082dfb31e77f1
CRs-Fixed: 2119759
2017-10-05 05:37:46 -07:00
Jeff Johnson
b66d8508be qcacld-3.0: Rename struct hdd_wmm_qos_context field pAdapter
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct hdd_wmm_qos_context field
pAdapter to align with the Coding Style.

Change-Id: I375584d6cb58bd7fd51375ab769c3cc361ba28d4
CRs-Fixed: 2119757
2017-10-05 05:37:39 -07:00
Jeff Johnson
a0ce1020cc qcacld-3.0: Replace typedef tdls_config_params_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 tdls_config_params_t typedef
does not meet any of those criteria, so replace references to it with
a reference to a properly named struct.

Change-Id: Iac14e2e25c7079773e89385fd87b632840ca6a53
CRs-Fixed: 2119582
2017-10-05 05:37:31 -07:00
Jeff Johnson
2a7220019a qcacld-3.0: Replace typedef hdd_wext_state_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 hdd_wext_state_t typedef does
not meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I30a735370fccf0e7bf068b1679cc01844c719a9f
CRs-Fixed: 2119532
2017-10-05 05:37:23 -07:00
Jeff Johnson
ca2530cd52 qcacld-3.0: Replace typedef hdd_hostapd_state_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 hdd_hostapd_state_t typedef
does not meet any of those criteria, so replace references to it with
a reference to the underlying struct.

Change-Id: Ifba43e6a79aced01a73d345d2adcf8302698d9ee
CRs-Fixed: 2119528
2017-10-05 05:36:51 -07:00
Jeff Johnson
5e4b93c82c qcacld-3.0: Replace typedef hdd_cfg80211_state_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 hdd_cfg80211_state_t typedef
does not meet any of those criteria, so replace references to it with
a reference to the underlying struct.

Change-Id: Ica1783f34fb6fb3fe6a90ec9e165cea2a3b08c64
CRs-Fixed: 2119527
2017-10-05 05:36:43 -07:00
Jeff Johnson
52b5060b90 qcacld-3.0: Replace typedef hdd_roc_req_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 hdd_roc_req_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I0d59d9f18248c94b2a27f3de4bd5dd4c0c7c840b
CRs-Fixed: 2119534
2017-10-05 05:36:34 -07:00
Jeff Johnson
88c2e8a67c qcacld-3.0: Replace typedef hdd_remain_on_chan_ctx_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 hdd_remain_on_chan_ctx_t
typedef does not meet any of those criteria, so replace references to
it with a reference to the underlying struct.

Change-Id: I7bd20097cac20c7dbe9e3debb828638a3ad6bd8b
CRs-Fixed: 2119526
2017-10-05 05:36:26 -07:00
Jeff Johnson
c945f5660a qcacld-3.0: Replace typedef action_pkt_buffer_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 action_pkt_buffer_t typedef
does not meet any of those criteria, so replace references to it with
a reference to the underlying struct.

Change-Id: Icdcc07459223aa1b9c91601aa25ac9c314608da8
CRs-Fixed: 2119303
2017-10-05 05:36:18 -07:00
Jeff Johnson
cc98797190 qcacld-3.0: Remove obsolete HDD WAPI definitions
Many of the HDD WAPI definitions are obsolete, so remove the ones that
are no longer being used.

Change-Id: I342a8f590c835ddec03b2a20d16ad8f0014ca6af
CRs-Fixed: 2119533
2017-10-04 13:04:45 -07:00