Commit Graph

7235 Commits

Author SHA1 Message Date
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
snandini
5ff866902d Release 5.2.0.47H
Release 5.2.0.47H

Change-Id: Ic0749957f2262c69051128e3e69ff98b5c144df2
CRs-Fixed: 774533
2017-10-05 20:00:04 -07:00
Dustin Brown
3561949b4d qcacld-3.0: Migrate to stats_request_params
There are currently two ways to get vdev stats from firmware. As such,
the redundant pe_stats_req is being removed. Migrate existing consumers
to stats_request_params instead.

Change-Id: I3426b43a6202bb59ceef13cf8d4528700c7f3983
CRs-Fixed: 2120637
2017-10-05 20:00:04 -07:00
snandini
58f050480f Release 5.2.0.47G
Release 5.2.0.47G

Change-Id: I9eb9fa26f8cc96769de6620a95d269c3a4d2d95f
CRs-Fixed: 774533
2017-10-05 16:59:50 -07:00
Vignesh Viswanathan
53d69c9b7f qcacld-3.0: Fix integer overflow in wma_unified_link_peer_stats_event_handler
Currently in wma_unified_link_peer_stats_event_handler, the check to validate
if peer_stats->num_rates is less than WMA_SVC_MSG_MAX_SIZE is done only for
the first member of the peer_stats array. This can lead to integer overflow
as num_rates is calculated as sum of peer_stats->num_rates for each of the
peer_stats in the array.

Add code changes to loop and calculate total_num_rates for all the peer_stats
and then validate total_num_rates with WMA_SVC_MSG_MAX_SIZE.

Change-Id: Ic934934a990bd55fce70a0eaffa2812bc34b0ddd
CRs-Fixed: 2113758
2017-10-05 16:59:49 -07:00
snandini
391df21964 Release 5.2.0.47F
Release 5.2.0.47F

Change-Id: Ia72b34432a914373bd2013827b9cfd46c3712c96
CRs-Fixed: 774533
2017-10-05 16:11:48 -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
Naveen Rawat
b3f3eee6c2 qcacld-3.0: Add new check for Vendor AP to associate in 1x1
Some vendor APs are not able to handle the SMPS frames causing the
APs to crash.

Add new check for a vendor AP OUIs and AP being in 4x4 or 3x3 11ac
capabilities to associate in 1x1 to that AP.

Change-Id: I023237fd3531529648890c9d71101b57a036cc7f
CRs-Fixed: 2112017
2017-10-05 16:11:44 -07:00
Naveen Rawat
5b96c3c90c qcacld-3.0: Fix Tx BF CNS Value sent in ASSOC request
Currently host take min of VHTCaps.csnofBeamformerAntSup and self
txBFCsnValue rather than sending self CSN cap. However doing so
have certain IOT issue with commercial APs already in market. This
IOT issue is found only in our 2x4 solution. Fix this by min only
if self CSN is < 4.

Change-Id: I819fcc440ef3a74ae0dc9011465d0a5d1f2c5892
CRs-Fixed: 2121133
2017-10-05 16:11:42 -07:00
snandini
b61286029e Release 5.2.0.47E
Release 5.2.0.47E

Change-Id: I7bff6ca81c1a4db0a1ac422c523e7d972e858230
CRs-Fixed: 774533
2017-10-05 09:20:22 -07:00
Mukul Sharma
9f1345284e qcacld-3.0: Support more Cipher / Akm suits in RSNIE parsing
Currently, while parinsg RSNIE host allow up to 4 max
cipher / akm suits. Hence if beacon / probe response
carry more than 4 cipher/akm suits then RSNIE parsing
get fails.
As a part of fix, increase cipher/akm max count to 6.

Change-Id: I62f8797b480f0cc82586f76ec7fd318499bc7628
CRs-Fixed: 2081030
2017-10-05 09:20:20 -07:00
snandini
3185814f6f Release 5.2.0.47D
Release 5.2.0.47D

Change-Id: I4f05af227b5b1240cf3b74fd741b806c4656102d
CRs-Fixed: 774533
2017-10-05 05:37:59 -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
7274ccc757 qcacld-3.0: Replace typedef tCfgIniEntry
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 tCfgIniEntry typedef does not
meet any of those criteria, so replace references to it with a
reference to an appropriately named struct.

Change-Id: I246d68e79fc40629d0d4217682d18c063cf27d17
CRs-Fixed: 2119531
2017-10-05 05:37:15 -07:00
Jeff Johnson
d005cb33ea qcacld-3.0: Remove legacy avoid freq list structures
The avoid freq list definitions were recently redefined in the
qca-wifi-host-cmn project. Since the legacy definitions are no longer
used, remove them.

Change-Id: I2faa1ad42a6ad5c397ef25576d1cffbdbd54e28a
CRs-Fixed: 2119530
2017-10-05 05:37:07 -07:00
Jeff Johnson
31304ccc03 qcacld-3.0: Use correct macro for "avoid freq list" limit
The "avoid freq list" definitions are now defined in the
qca-wifi-host-cmn project, but in one place a reference to a legacy
macro is being used for a range check. Replace the usage of
HDD_MAX_AVOID_FREQ_RANGES with the converged macro CH_AVOID_MAX_RANGE;

Change-Id: Ib750cc6d8458966cb05249785a57fb62b81ac408
CRs-Fixed: 2119529
2017-10-05 05:36:59 -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
snandini
b1629ee112 Release 5.2.0.47C
Release 5.2.0.47C

Change-Id: I495cb0d1f8b8fcd5b52ac3ad528f1c2b8032b6a0
CRs-Fixed: 774533
2017-10-04 22:48:36 -07:00
Rajeev Kumar
66b5726b66 qcacld-3.0: Fix excessive logging from wlan_pmo_suspend_resume.c
Info level logs are logged on console, hence change PMO
logs in wlan_pmo_suspend_resume.c to debug log level to avoid
excessive console logging.

Change-Id: Ie9852ef5ea8fefaa33a82f0b287224271ada003b
CRs-Fixed: 2121361
2017-10-04 22:48:31 -07:00
Ravi Joshi
e55f42cfe7 qcacld-3.0: Enable support for multiple NAN peers per NDI
Enable support for multiple NAN data path peers from host.
FW already supports multiple NAN peers.

CRs-Fixed: 2121121
Change-Id: I23307c5f56114084a93b3afae0e23a07251c5013
2017-10-04 22:48:22 -07:00
snandini
e626ea5aff Release 5.2.0.47B
Release 5.2.0.47B

Change-Id: I5f077a7aabab270ea6464cebc3fced1e703d5a07
CRs-Fixed: 774533
2017-10-04 21:52:29 -07:00
Naveen Rawat
60f39da929 qcacld-3.0: Check vdev_id against wma->max_bssid
Check vdev_id against wma->max_bssid in wma_mcc_vdev_tx_pause_evt_handler to
avoid bufer overflow.

Change-Id: Ie47a0ed2f7f27f13a01e1b2cb365fae66b41b1df
CRs-Fixed: 2120677
2017-10-04 21:52:29 -07:00
snandini
05512b452b Release 5.2.0.47A
Release 5.2.0.47A

Change-Id: Ide7b368167f12a361bed8aa24cc68f6462c268bd
CRs-Fixed: 774533
2017-10-04 19:26:15 -07:00
Dustin Brown
8719476c67 qcacld-3.0: Print value of gPreventLinkDown
Print the configured value of gPreventLinkDown in hdd_cfg_print()
for debugging purposes.

Change-Id: I765ca66ffaa6bdd958fb779189253f50ae5cf352
CRs-Fixed: 2115299
2017-10-04 19:26:12 -07:00
snandini
fed77d1ef3 Release 5.2.0.47
Release 5.2.0.47

Change-Id: I28886bea9fa4b9f509a8dff6e6ed61cd812d3864
CRs-Fixed: 774533
2017-10-04 18:29:45 -07:00
Venkata Sharath Chandra Manchala
9abac31eba Revert "qcacld-3.0: Propagate config parameters to datapath"
This reverts Change I852b14cb04b1c2c01a697434bc5fe8b29dbfe9ea.

Change-Id: Ia433fdcb58feea27c5897975002bb347d6b96bb4
CRs-Fixed: 2097229
2017-10-04 18:29:40 -07:00
snandini
89ad2ce0da Release 5.2.0.46Z
Release 5.2.0.46Z

Change-Id: Ib1c3427b985fda027d9045dd3bfbf5366cb408cf
CRs-Fixed: 774533
2017-10-04 14:09:02 -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
Jeff Johnson
8215592437 qcacld-3.0: Replace typedef hdd_station_info_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_station_info_t typedef does
not meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I2ad73b4ac543b56d0883e20c0d20d4ddd473c35a
CRs-Fixed: 2119525
2017-10-04 13:04:45 -07:00
Jeff Johnson
673fd5b80a qcacld-3.0: Replace typedef t_multicast_add_list
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 t_multicast_add_list typedef
does not meet any of those criteria, so replace references to it with
a reference to the underlying struct.

Change-Id: Ic70b2e2c716963b0f267bae86961cbf973246b24
CRs-Fixed: 2119523
2017-10-04 13:04:45 -07:00
Jeff Johnson
44e5217218 qcacld-3.0: Replace typedef beacon_data_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 beacon_data_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I2202f452549da705a315e89993f100617eb7e0e1
CRs-Fixed: 2119522
2017-10-04 13:04:45 -07:00
snandini
dd71ba999f Release 5.2.0.46Y
Release 5.2.0.46Y

Change-Id: Iee59aafcf2918c47843b293edfd92788e4e77528
CRs-Fixed: 774533
2017-10-04 08:41:29 -07:00
Poddar, Siddarth
aee8ff668f qcacld-3.0: Cleanup of hdd_wlan_startup
Cleanup the hdd_wlan_startup, presently lot of configuration
is written to firmware from the startup function which is not
correct with different driver models supported. Move the feature
initialization to hdd_features_init. Also in the probe failure
error path netdev notifier is not getting unregistered.
Leaving stale pointer with the kernel which can lead to a crash.

Unregister the netdevice during the probe failure and cleanup features.

Change-Id: If7fe7c4c0f97e4b4829551840643c4e525696c76
CRs-Fixed: 2090570
2017-10-04 08:41:29 -07:00
Arunk Khandavalli
932a9e161a qcacld-3.0: synchronize interface change timer with driver shutdown
As part of the last interface down, driver starts the interface
change timer to close the modules of 15seconds, if there is no
request to use the interfaces from upper layer during this time
the timer expiers and closes modules. There can be SSR/PDR triggered in the
different context which during shutdown tries to call the
respective module notifiers which can be purged/freed
in the timer context.

Synchronize the interface change timer callback with the shutdown
using the interface change timer lock. Following steps are taken
to make sure one thread is completed before other thread starts
execution:
	* Set the respective flag of recovery inprogress or fw_down
          so that access to firmware is blocked.
	* Take the interface change lock, so if the timer callback
	  is running it will complete the closing the modulkes,
	  or if the uevent gets the lock it completes the calling
	  notifiers and purges the same.
	* Release the interface change lock.

Change-Id: I1d7f62cd0ce7268cc9a5bda2a72dae384b70a6e2
CRs-Fixed: 2100846
2017-10-04 08:41:26 -07:00
Nachiket Kukade
aaf8a71ef5 qcacld-3.0: Implementation to change BmissFinalBcnt dynamically
Implementation to change BmissFinalBcnt dynamically.
User can set totalBcnt using the new command
QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BMISS_CNT.
BmissFirstBcnt will retain its default value or from ini.
BmissFinalBcnt will be configured as (totalBcnt - BmissFirstBcnt).

Change-Id: Ie3c3895d48248d349400e755f07edc807e335b44
CRs-Fixed: 2081906
2017-10-04 08:41:24 -07:00
Arunk Khandavalli
062fb036ec qcacld-3.0: Add SSR support for monitor mode
Presently SSR is not supported in the monitor mode, in the debug
builds the device enters bad state when the SSR is triggered
in the monitor mode.

Make changes to support SSR in monitor mode.

Change-Id: Iee88a0c1aca1b093607cea20ee1957be55a33598
CRs-Fixed: 2034240
2017-10-04 12:18:15 +05:30
snandini
141f12cb55 Release 5.2.0.46X
Release 5.2.0.46X

Change-Id: I8e11706dab5fc798fb4f3cd6a373fb2321d3d42a
CRs-Fixed: 774533
2017-10-03 22:00:50 -07:00
Jeff Johnson
ba1d0cad25 qcacld-3.0: Replace typedef hdd_tx_rx_stats_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_tx_rx_stats_t typedef does
not meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Ic3ff995d10e65f949ee069b134d9826583461b1e
CRs-Fixed: 2119524
2017-10-03 16:35:33 -07:00
snandini
ca1341f9e2 Release 5.2.0.46W
Release 5.2.0.46W

Change-Id: Id8cab7b8a9bfeaf6801031206a458b859cf8dac9
CRs-Fixed: 774533
2017-10-03 16:02:57 -07:00
Krunal Soni
332f4afc05 qcacld-3.0: For host-invoked roaming to same AP, don't to send null frm
During host invoked roaming, set WMI_ROAM_INVOKE_FLAG_NO_NULL_FRAME_TO_AP
flag so that FW will not send NULL data frame while doing transition to
same bssid.

CRs-Fixed: 2046964
Change-Id: I043c3d2431e4da5af36fb710bd36a520550abbd3
2017-10-03 16:02:56 -07:00
Poddar, Siddarth
44aa5aa772 qcacld-3.0: Add support to log ICMPv6 packets in DP Trace
Add support to log ICMPv6 packets such as NS/NA, RS/RA and
ICMPv6 Req/Res in dp trace.

Change-Id: I20ba677db59044569516348cd11427fb820175a8
CRs-Fixed: 2075962
2017-10-03 16:02:53 -07:00
snandini
79225a6e90 Release 5.2.0.46V
Release 5.2.0.46V

Change-Id: I7cbc6262e013cec2084745d92ccd550ecfeb2fa9
CRs-Fixed: 774533
2017-10-03 11:46:05 -07:00