Commit Graph

8885 Commits

Author SHA1 Message Date
nshrivas
5cd9be3a5c Release 5.2.0.72I
Release 5.2.0.72I

Change-Id: I2c6c8473675a1b29253a96e16b61fe26757f91c4
CRs-Fixed: 774533
2018-04-02 16:41:39 -07:00
Jeff Johnson
e8846abed9 qcacld-3.0: Rename HDD Green AP APIs
Currently the HDD Green APIs do not have a consistent prefix. In
preparation for refactoring this feature, rename the HDD Green AP APIs
to have a consistent prefix.

Change-Id: Ib4d9a6db6ffacd9e19277d95f4976805d0bb6fa3
CRs-Fixed: 2216246
2018-04-02 16:41:38 -07:00
Jeff Johnson
6ec742cbed qcacld-3.0: wma: Featurize Green AP service event handling
Currently wma_update_hdd_cfg() has unconditional code to check for
firmware support of the WMI_SERVICE_EGAP service and to register an
event handler when it is present. However this code doesn't build
correctly when the Green AP feature is disabled in the build.
Therefore featurize the Green AP service event handling.

Change-Id: Ic5f8fcc960c4b1b6ebc3b9b78acd84f583c24b9f
CRs-Fixed: 2216245
2018-04-02 16:41:35 -07:00
nshrivas
d39cbba87b Release 5.2.0.72H
Release 5.2.0.72H

Change-Id: Ia0d052cbe39bad435b431f2c04bf22ea3d21c81d
CRs-Fixed: 774533
2018-04-02 03:08:54 -07:00
Naveen Rawat
709c0cbcf2 qcacld-3.0: Avoid un-initialized pointer access in hdd_ndi_start_bss
In function hdd_ndi_start_bss, avoid access to channel list pointer without
initializing it.

Change-Id: I9307f587bb9691d12b9b16f3a5e62945be7b2220
CRs-Fixed: 2205990
2018-04-02 03:08:54 -07:00
nshrivas
da7e53ada0 Release 5.2.0.72G
Release 5.2.0.72G

Change-Id: Ide3b3e12258c071f103e20f0ee0f7b562463185b
CRs-Fixed: 774533
2018-04-01 09:11:04 -07:00
Subhani Shaik
16821e678d qcacld-3.0: Enable oem data processing in SAP mode
The OEM data is only processed in STA mode. As part of RTT config
LCI/LCR IE element configuration is required in SAP mode.

CRs-Fixed: 2179161
Change-Id: I65e0af23aba502031f23754572ca094058c5fe74
2018-04-01 09:11:03 -07:00
nshrivas
6add0178db Release 5.2.0.72F
Release 5.2.0.72F

Change-Id: I4ecd8e5782316b4d80120258b0bac0899dbcf2dd
CRs-Fixed: 774533
2018-03-30 23:32:34 -07:00
Rajeev Kumar
7563b3fce7 qcacld-3.0: Do not disable IMPS during module start
Do not disable IMPS power save during module start because
IMPS needs to be enabled only once during startup(modue init)
and only needs to be disabled during driver exit(module_exit).

Change-Id: I16babc857658f5f4064025c5eb28d287d025dd88
CRs-Fixed: 2216146
2018-03-30 23:32:34 -07:00
nshrivas
8022a7cf91 Release 5.2.0.72E
Release 5.2.0.72E

Change-Id: I8275d4a6f953ae5ba55e88cfa4b654d0d4416847
CRs-Fixed: 774533
2018-03-30 21:08:44 -07:00
Jeff Johnson
5312f8ea04 qcacld-3.0: Avoid double free in drv_cmd_get_ibss_peer_info_all()
Change "qcacld-3.0: Fix memory leak issues in HDD" (Change-Id:
Iae551cd3acbb6bc2618f05cfdc33e4f742d63192) added logic to
drv_cmd_get_ibss_peer_info_all() to free the dynamically-allocated
buffer "extra" when either of the copy_to_user() calls
failed. Unfortunately this introduced a regression since now in the
success case the "extra" buffer is freed twice.

Update drv_cmd_get_ibss_peer_info_all() to remove the now unnecessary
call to qdf_mem_free() in the success case.

Change-Id: I7f8c17cd7576bf05ac8b6c4d6658ac40cb55782a
CRs-Fixed: 2215443
2018-03-30 21:08:44 -07:00
nshrivas
b5ba25101b Release 5.2.0.72D
Release 5.2.0.72D

Change-Id: Ide7eb616d9b6aacb87760edf75a6ea8f9028e4ec
CRs-Fixed: 774533
2018-03-30 17:00:12 -07:00
Tushnim Bhattacharyya
0725f1ad21 qcacld-3.0: Use correct enum type in function wma_get_rcpi_req
Use the wmi enum type in function wma_get_rcpi_req instead of
rcpi_measurement_type.

Change-Id: I5b506059ad8b0f4cd65c24e20df6306a47249fdb
CRs-Fixed: 2216015
2018-03-30 17:00:12 -07:00
Krunal Soni
5ee9ce4e2e qcacld-3.0: Remove dead code in protocol stack
Remove dead code in protocol stack.

Change-Id: I366705b8cf4cf13c030a6456c21dae94193d0d77
CRs-Fixed: 2216008
2018-03-30 17:00:09 -07:00
nshrivas
34e626754f Release 5.2.0.72C
Release 5.2.0.72C

Change-Id: I668a60478211cb160a33101b6f75b6303e81bb0f
CRs-Fixed: 774533
2018-03-30 14:48:15 -07:00
Jeff Johnson
d66b4d56a4 qcacld-3.0: Remove obsolete support for nAPAutoShutOff
The AP auto shutoff feature controlled by INI item nAPAutoShutOff is
obsolete, so remove it.

Change-Id: I9e96bee36acc1ea1ac6f775ae04b31929bcb8406
CRs-Fixed: 2215925
2018-03-30 14:48:15 -07:00
nshrivas
07e0e8caaf Release 5.2.0.72B
Release 5.2.0.72B

Change-Id: Iab32c9ddc0accbc9471558c28abd57ef3c2d5562
CRs-Fixed: 774533
2018-03-30 13:30:39 -07:00
Tushnim Bhattacharyya
647f93e8ed qcacld-3.0: Call scheduler_post_msg directly instead of wma_post_ctrl_msg
Call scheduler_post_msg directly instead of wma_post_ctrl_msg.

Change-Id: I01dbe3623bfb9f83cbbf182b92cdb4f6fb98bb65
CRs-Fixed: 2213784
2018-03-30 13:30:38 -07:00
Mahesh Kumar Kalikot Veetil
885a77b67c qcacld-3.0: Use in_compat_syscall() to check compatness
Use in_compat_syscall() to query the syscall type, so it works properly
on all architectures. Also maintain backward compatibility with older
kernel.

Change-Id: Ife19c9874dcacc18c5d19c1175988bee66ea1cdd
CRs-Fixed: 2215566
2018-03-30 13:30:35 -07:00
nshrivas
d2f92c4f93 Release 5.2.0.72A
Release 5.2.0.72A

Change-Id: I03b223fabc3cbbfd7aaa92c74265acbbf05f4b03
CRs-Fixed: 774533
2018-03-30 02:46:33 -07:00
gaolez
d1a229d412 qcacld-3.0: Refine the MGMT rate valid check function
qcacld-2.0 to qcacld-3.0 propagation

1. CCK rate should not allowed in 5G mode
2. Avoid configure 2 stream rates to send MGMT packet

Change-Id: Id222bc5c41264ba802a43a02d333f16578bc4a5d
CRs-Fixed: 2182955
2018-03-30 02:46:33 -07:00
Alok Kumar
b64650c29a qcacld-3.0: Handle NUD events within driver
Currently NUD events are used by Framework to detect
the Network Reachability. Framework issues disconnection
for NUD_FAILED event.

Now, NUD events are tracked within driver to detect the
reachability and based on TxRx traffic, driver takes decision
to issue disconnection.

Change-Id: I461610c220288ff1fd718bb7bc2dd8375588505c
CRs-Fixed: 2195796
2018-03-30 02:46:29 -07:00
Abhinav Kumar
fcc22e0b94 qcacld-3.0: Drop duplicate Beacon Report request
Currently, driver does not check for duplication of rrm
request. If driver receives any duplicate rrm request,
then driver sends pilot frame for second rrm request which
is not acceptable.
Add changes to drop all duplicate rrm requests to fix this.

Change-Id: I44a67a4119ae55ac94f5c9ecdb01032f6fd39c7c
CRs-Fixed: 2195990
2018-03-30 02:46:25 -07:00
Abhinav Kumar
d528d19d10 qcacld-3.0: Use max tx power allowed to compute link report power
Driver uses max tx power allowed for a particular channel to
calculate link report power and updates max tx power allowed with
calculated link report power. This can result in usage of
MIN_TX_PWR_CAP as max tx power if AP requests power below
MIN_TX_PWR_CAP in link request. Once max tx power reaches
MIN_TX_PWR_CAP, the driver will always use MIN_TX_PWR_CAP in
the link report which could be much less than power allowed for
a particular channel.

Use max tx power allowed for a particular channel always to
compute link report power to fix this issue.

Change-Id: I0060500f23e6131481baa00cd76f41419281e41a
CRs-Fixed: 2195960
2018-03-30 02:46:22 -07:00
Jeff Johnson
0604a3650d qcacld-3.0: Fix anomalies with hdd_stop_bss_link()
Address the following anomalies with hdd_stop_bss_link():
- Parameter usrDataForCallback is unused
- It returns errno but one caller is checking for QDF_STATUS

Change-Id: I31086d790066eec5774cf318eff0f90736b4c92f
CRs-Fixed: 2213062
2018-03-30 02:46:19 -07:00
Tushnim Bhattacharyya
604a7e1f53 qcacld-3.0: Remove redundant parentheses in lim function
Remove redundant parentheses in lim_obss_generate_detection_config.

Change-Id: Id28c2f5d1a44220c8f2f02b9815f1f63501226fc
CRs-Fixed: 2213784
2018-03-30 02:46:13 -07:00
Tushnim Bhattacharyya
d58e4c96f8 qcacld-3.0: Use correct return type in lim_send_addba_response_frame
Use correct return type in lim_send_addba_response_frame.

Change-Id: I3950f76c4f68e0b3fb6c5295054c5ea2b3a8f95b
CRs-Fixed: 2213784
2018-03-30 02:46:10 -07:00
Tushnim Bhattacharyya
dfbce70aaf qcacld-3.0: Use correct enum type for function variable
Use correct enum type for function variable in hdd_reset_tcp_delack
& return type in iw_get_policy_manager_ut_ops.

Change-Id: Iec8a678410b90dbe081c007f1bbfaa31f255799e
CRs-Fixed: 2213784
2018-03-30 02:46:07 -07:00
gaolez
c2b7208197 qcacld-3.0: reduce the interval of cap-tsf timer
qcacld-2.0 to qcacld-3.0 propagation

hdd_get_hosttime_from_targettime() will get wrong host time when
it's longer than WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC from last
TSF-HOST update. To fix this, TSF-HOST should be updated in at most
WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC, it couldn't be achieved if the
timer interval is also WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC, due to
processing or scheduling delay. So deduct several seconds from
WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC.

Change-Id: Icce41c74568370d98509a2ebe69ae62e99ad2ce8
CRs-Fixed: 2104915
2018-03-30 02:46:00 -07:00
nshrivas
efb0974505 Release 5.2.0.72
Release 5.2.0.72

Change-Id: I6509a2c86d196af5be71d38283d72854a1051118
CRs-Fixed: 774533
2018-03-29 23:37:20 -07:00
Naveen Rawat
a600b2e226 qcacld-3.0: Fix is_waiting_for_key usage for waking up host
Fix usage of flag is_waiting_for_key such that it programs wake
timer only for secure STA connected state.

Change-Id: I336696f15c5fc932a4eedf5534c2182bda3d2e27
CRs-Fixed: 2214809
2018-03-29 23:37:19 -07:00
Dustin Brown
048239934a qcacld-3.0: Free monitor mode self-peer
When a monitor mode vdev is created, a self-peer is created
automatically. However, when the vdev is destroyed, the self-peer is
leaked. Remove the self-peer when a monitor mode vdev is removed.

Change-Id: Ib6855957b56d057da9bf9a176b328cd9ec8dab96
CRs-Fixed: 2211141
2018-03-29 23:37:17 -07:00
Jeff Johnson
32bd9740ce qcacld-3.0: Replace hdd_wlan_get_freq() with converged service
Currently HDD defines function hdd_wlan_get_freq() which uses
it own static table to perform channel to frequency mapping. This
duplicates functionality provided by the converged regulatory
function wlan_reg_chan_to_freq(), so remove hdd_wlan_get_freq()
and update its only client to use wlan_reg_chan_to_freq().

Change-Id: I6fcb11b9b967ab77dcd7c8d0c1bc185ee3c18913
CRs-Fixed: 2215576
2018-03-29 23:37:14 -07:00
nshrivas
93b17851f8 Release 5.2.0.71Z
Release 5.2.0.71Z

Change-Id: I1a51566ac3e4c4db4ff3e03aaa08ca1fef39aab9
CRs-Fixed: 774533
2018-03-29 22:30:23 -07:00
Jeff Johnson
682a7a5558 qcacld-3.0: Remove nBssLimit from struct csr_scanstruct
Remove unused field nBssLimit from struct csr_scanstruct.

Change-Id: I0f1f4b4608acd6332a9b3a2c48fc4bf430d187bd
CRs-Fixed: 2213060
2018-03-29 22:30:22 -07:00
nshrivas
0ec3f07f2c Release 5.2.0.71Y
Release 5.2.0.71Y

Change-Id: I00056e255febc536bf600d4d5c9dfbb16c2ea541
CRs-Fixed: 774533
2018-03-29 21:14:40 -07:00
Sandeep Puligilla
2fcc2548c6 qcacld-3.0: Convert eCsrPhyMode to enum wlan_phymode
Add api to convert enum eCsrPhyMode to enum wlan_phymode.

Change-Id: I94596d73940805ba7fbb07b2ea90a9e8dbbf7e03
CRs-Fixed: 2214021
2018-03-29 21:14:37 -07:00
nshrivas
e4f05f5c9c Release 5.2.0.71X
Release 5.2.0.71X

Change-Id: Icd070cb979fb9c3c20ea8a907061c08dc98331fe
CRs-Fixed: 774533
2018-03-29 18:57:21 -07:00
Dundi Raviteja
170d287f1d qcacld-3.0: Fix buf overflow in __wlan_hdd_cfg80211_update_connect_params
Currently, number of bytes being copied into keyname_nai buffer is
key_nai_length, which can be greater than FILS_MAX_KEYNAME_NAI_LENGTH.
But the size of keyname_nai is limited to FILS_MAX_KEYNAME_NAI_LENGTH,
which may cause buffer overflow.

To address this issue, add check for key_nai_length against
FILS_MAX_KEYNAME_NAI_LENGTH to ensure buffer overflow does not happen.

Change-Id: I88c89b1fef6fdb1c4bd93e0fb8f3e54634b4940f
CRs-Fixed: 2208881
2018-03-29 18:57:20 -07:00
nshrivas
bfe1433bb2 Release 5.2.0.71W
Release 5.2.0.71W

Change-Id: Ieb59719c29e3f1d353c309ba48178fcd4ffcd332
CRs-Fixed: 774533
2018-03-29 17:32:03 -07:00
Ashish Kumar Dhanotiya
d39c8b55db qcacld-3.0: Update correct reason code on receiving del sta
On receiving del station command, SAP is not updating the del
station reason code properly in station info.
Update the correct reason code in station info whenever a
del station or deauth station event comes.

Change-Id: I2004dc21f18682dbc7dee488e7b55bfccd0d242a
CRs-Fixed: 2178538
2018-03-29 17:32:02 -07:00
nshrivas
1c07d547a0 Release 5.2.0.71V
Release 5.2.0.71V

Change-Id: I58456a90a19e3fc9c1c1b3603a07d016c1c85cc5
CRs-Fixed: 774533
2018-03-29 13:16:07 -07:00
Sravan Kumar Kairam
3033844ad4 qcacld-3.0: Update SAP interface stats only for exception path
Currently sap netdev interface stats are updated even for the
IPA uc HW offload packets. This is not correct as the stats need
to be updated only for the exception packets which comes to the
host and forwarded to netdev kernel. In this change update the
soft ap interface stats only for the exception packets which
comes to host.

Change-Id: I0b017cf1d5ff74234bfee540ef37ee03c5131c48
CRs-Fixed: 2164582
2018-03-29 13:16:06 -07:00
psimha
c2cb9463f5 qcacld-3.0: Add CDP call to set security type in data path
Call cdp_set_pn_check to set PN check & security type in data path.
Required for RX defragmentation on Napier.

Change-Id: Ie00613be2e2713c58b4d83aa1c31eb4451442477
CRs-Fixed: 2213691
2018-03-29 13:16:04 -07:00
nshrivas
96d62345b2 Release 5.2.0.71U
Release 5.2.0.71U

Change-Id: Ie4a9c250ad70387b3710f01c1172531253df76ba
CRs-Fixed: 774533
2018-03-29 06:57:42 -07:00
Sandeep Puligilla
f5ccbf66e6 qcacld-3.0: Deprecate enum wmi_dwelltime_adaptive_mode
Deprecate enum wmi_dwelltime_adaptive_mode and use enum
scan_dwelltime_adaptive_mode defined in scan component.

Change-Id: I9c33b852172d9208fb8440c6dc71a12aefd717da
CRs-Fixed: 2213150
2018-03-29 06:57:42 -07:00
Vignesh Viswanathan
01e1adb512 qcacld-3.0: Fix potential buffer overflow in radio stats event handler
In function wma_unified_radio_tx_power_level_stats_event_handler,
radio_id is checked if it is greater than num_radio. However, radio_id
is an array index and its range is 0 to (num_radio-1). So if radio_id
is equal to num_radio, a buffer overflow would occur while accessing
the array link_stats_results->results.

Fix sanity check to return error if radio_id is greater than or equal
to num_radio in wma_unified_radio_tx_power_level_stats_event_handler.

Change-Id: Ib48e8388206f28e7b2cb80177363655008a109e6
CRs-Fixed: 2209106
2018-03-29 06:57:39 -07:00
nshrivas
be2173d088 Release 5.2.0.71T
Release 5.2.0.71T

Change-Id: Ie413941ac42e1f295d8c27538acd1b54c604935a
CRs-Fixed: 774533
2018-03-29 03:37:26 -07:00
Padma, Santhosh Kumar
eb90a558a3 qcacld-3.0: Trigger/handle SAE using cfg80211
Add changes to trigger SAE using cfg80211 API's. Also, add
changes to handle SAE status that comes via cfg80211 ops

Change-Id: Ie113f84d4fdc927fff26b13b0e0551b92b22fd5d
CRs-Fixed: 2211041
2018-03-29 03:37:26 -07:00
nshrivas
5314e2e545 Release 5.2.0.71S
Release 5.2.0.71S

Change-Id: I4fcd02d3b9f738b8b88c27d4ed72fbb41034f60f
CRs-Fixed: 774533
2018-03-28 21:09:10 -07:00