Commit Graph

8853 Commits

Author SHA1 Message Date
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
Nachiket Kukade
7dda8c22cc qcacld-3.0: Set wmi_handle in pdev before registering EGAP event handler
wmi_handle is needed while registering for wmi event handler. But it is
not set for pdev before registering for EGAP event handler. With this,
EGAP support remains disabled which may end up in increased power
consumption.

Move setting of wmi_handle in pdev before registering for EGAP event.

Change-Id: Icb8accc738a3aaad7fbc1201c7c0d0b77945e8f2
CRs-Fixed: 2203380
2018-03-28 21:09:09 -07:00
Yun Park
c3e355631a qcacld-3.0: Implement DHCP START/STOP indication for SAP/P2P GO
The Data Path in the WLAN host driver needs to be sending DHCP START/
STOP indications to FW during DHCP based IP address acquisition phase
in the SAP mode.
Inspect the Tx/Rx frame, and send the notification to the FW through
WMI message.

Change-Id: Iad6308980a7158516f341b97f3baffab1e4c4bc3
CRs-Fixed: 2114816
2018-03-28 21:09:07 -07:00
nshrivas
10bfe01904 Release 5.2.0.71R
Release 5.2.0.71R

Change-Id: I8e6f06ea10c7c8762000ca7c4287fb040389449e
CRs-Fixed: 774533
2018-03-28 20:01:37 -07:00
Rajeev Kumar
4a70823519 qcacld-3.0: Enable auto PS timer in hdd config file
Enable auto PS timer in hdd config such that adrastea
is never stuck in full power mode.

Change-Id: I2668b7c1ba64b67bf524e449e96ec6d79a2c1676
CRs-Fixed: 2214124
2018-03-28 20:01:37 -07:00
Jiachao Wu
7bf72b44c5 qcacld-3.0: Increase hdd disconnect wait time
wlan_hdd_disconnect wait time is 5 second.
WMA_VDEV_STOP_REQUEST_TIMEOUT is 6 second.There have 1 sec gap.
Which means if timeout happend, wlan_hdd_disconnect will exit before
wma_vdev_resp_timer is invoked. wma_vdev_resp_timer will trigger SME
to invoke callback hdd_dis_connect_handler to release vdev obj ref
count.

If unload driver during the time gap, vdev cannot destory
successfully because hdd_dis_connect_handler haven't be called.

rmmod will wait for wlan_hdd_disconnect exiting then unload driver.
So increase hdd disconnect wait time. Make sure wlan_hdd_disconnect
exit after lower layer timeout and hdd disconnect handler be called.

Change-Id: I8fddae200ed675b93c0f300a9e28dbbfd3a976a6
CRs-Fixed: 2201448
2018-03-28 20:01:34 -07:00
nshrivas
5c673fc694 Release 5.2.0.71Q
Release 5.2.0.71Q

Change-Id: I424fa6101864a5fe324b780917e17bcb6a3340bc
CRs-Fixed: 774533
2018-03-28 14:44:27 -07:00
Alok Kumar
75355aa8f3 qcacld-3.0: Add support for Tx OTA Ack stats
Add stats in vdev for Tx OTA success and failure count

Change-Id: I6849dfc1d11351f5cc63acf3a22bf72a1ef8109c
CRs-Fixed: 2211898
2018-03-28 14:44:27 -07:00
Kiran Kumar Lokere
b04f7f89f7 qcacld-3.0: Fix the band setting in 11ac phymode update
If user configures the phymode to 11ac then band is configured
with only 5G that disables the 2.4G channels.

Instead of setting the band to 5G, enable the 5G band during
11ac phymode update if the 5G band is not enabled.

Change-Id: I4a4fa3a0bddb345e7ea73b7b36f0581644029316
CRs-Fixed: 2210359
2018-03-28 14:44:25 -07:00
nshrivas
956365ee7c Release 5.2.0.71P
Release 5.2.0.71P

Change-Id: I7737d1307b33f82b22140674d6546e09438045d6
CRs-Fixed: 774533
2018-03-28 06:26:15 -07:00
Sandeep Puligilla
68908f2d02 qcacld-3.0: Never ageout connected AP scan entry
Connected AP scan entry is aged out if beacon
is not recieved within scan age out time.

Update mlme information of the connected AP/BSSID
scan entry so that scan age out hanlder will not
age it out even though the last beacon recieved
time is greater than the configured scan age out value.

Change-Id: I14c68c28459080623ca62c0bad9052e38d7fb348
CRs-Fixed: 2202010
2018-03-28 06:26:14 -07:00
Himanshu Agarwal
4f503b8676 qcacld-3.0: Compute RSSI and BSS adjustment correctly
When hw_mode=any (both 2.4Ghz nad 5Ghz bands included),
RSSI and BSS adjustment for 2.4Ghz channels happens 2
times, once in sap_interference_rssi_count() and once
in sap_interference_rssi_count_5G() which leads to wrong
computation of weight.

Check whether a channel is 2.4Ghz or 5Ghz channel before
calling the corresponding RSSI, BSS adjustment function.

Change-Id: I6c318e489cfa177c6de088e7cdfb4779ceb99b2f
CRs-Fixed: 2208069
2018-03-28 06:26:08 -07:00
nshrivas
74dc102c69 Release 5.2.0.71O
Release 5.2.0.71O

Change-Id: I4eab8572679df0078326225a0f1baaf9d555a98b
CRs-Fixed: 774533
2018-03-27 23:38:35 -07:00
Jeff Johnson
60b5fe20cc qcacld-3.0: Remove osScanChannelMask
Remove unused field osScanChannelMask in struct csr_scanstruct.

Change-Id: Id19ae20ec04284f51ebf96645257e70cdd104467
CRs-Fixed: 2213058
2018-03-27 23:38:32 -07:00
Kiran Kumar Lokere
aee823af05 qcacld-3.0: Set AMSDU support in ADDBA if peer supports
Set AMSDU in AMPDU support in addba response frames only
if supports the feature.

Change-Id: Ibdb51e9055199b688f494f31fd484b246ec11163
CRs-Fixed: 2211374
2018-03-27 23:38:29 -07:00
nshrivas
665484ac26 Release 5.2.0.71N
Release 5.2.0.71N

Change-Id: I2be49c7046300790a01bd627010dc08686e4207d
CRs-Fixed: 774533
2018-03-27 13:53:02 -07:00
Jeff Johnson
abcb1106fe qcacld-3.0: Remove lim_send_sme_neighbor_bss_ind()
lim_send_sme_neighbor_bss_ind() is unused so remove it and all related
data structures.

Change-Id: I373fb570f3b368dc79ce08b7acbc1026a7e19758
CRs-Fixed: 2213056
2018-03-27 13:53:01 -07:00
Jeff Johnson
59305cd358 qcacld-3.0: Remove LIM suspend/resume callbacks
The LIM suspend & resume callbacks are obsolete, so remove them.

Change-Id: I678c91858e1384406dd2921662f513c3315fb2cb
CRs-Fixed: 2213053
2018-03-27 13:52:59 -07:00
Jeff Johnson
5ec4d8c45e qcacld-3.0: Remove gLimHalScanState
LIM is no longer involved in scan so remove gLimHalScanState.

Change-Id: Ie6fca2c71178da642aa065f6a24493df82144156
CRs-Fixed: 2212880
2018-03-27 13:52:56 -07:00
Jeff Johnson
5bb67b78e4 qcacld-3.0: Remove obsolete idle scan flags
Remove the following obsolete fields from struct csr_scanstruct:
- fCancelIdleScan
- fRestartIdleScan
- nIdleScanTimeGap

Change-Id: I50fd4d966586487111a55fc378a06783636a7df9
CRs-Fixed: 2212877
2018-03-27 13:52:53 -07:00
Jeff Johnson
4877d76793 qcacld-3.0: Remove current country BSSID & RSSI fields
struct csr_scanstruct contains fields currentCountryBssid and
currentCountryRSSI which are obsolete, so remove them.

Change-Id: I47f40cc687b0e905d3c2db4ad67fa32f70d5181e
CRs-Fixed: 2212972
2018-03-27 13:52:51 -07:00
Jeff Johnson
ab093c3422 qcacld-3.0: Remove Is11dSupportEnabledOriginal
The flag Is11dSupportEnabledOriginal is obsolete, so remove it.

Change-Id: I41626673ab2a9a53cd4607c2c3682530ed1c0051
CRs-Fixed: 2212925
2018-03-27 13:52:48 -07:00
Jeff Johnson
0b9639b4e7 qcacld-3.0: Remove obsolete csr_set_country_code()
Function csr_set_country_code() is obsolete, so remove it.

Change-Id: Ibccc6deaecb00862a2d9640de05106b81c658e69
CRs-Fixed: 2212924
2018-03-27 13:52:45 -07:00
Jeff Johnson
bc5aecd951 qcacld-3.0: Remove eWNI_SME_CHANGE_COUNTRY_CODE message handling
Message eWNI_SME_CHANGE_COUNTRY_CODE is no longer being sent, so
remove it along with the handler for it.

Change-Id: I8fe5e1e8c0c18ab51d496dddd9604c3a4cb2b236
CRs-Fixed: 2212920
2018-03-27 13:52:43 -07:00
Jeff Johnson
0820d32488 qcacld-3.0: Remove obsolete "country change" trace code
TRACE_CODE_SME_RX_HDD_CHANGE_CNTRYCODE is obsolete, so remove it.

Change-Id: I4f86162cd912f69c7b08e3384412eec96367dc40
CRs-Fixed: 2212909
2018-03-27 13:52:40 -07:00
Jeff Johnson
c3b15737e1 qcacld-3.0: Remove obsolete sme_change_country_code()
Function sme_change_country_code() is obsolete, so remove it.

Change-Id: I1d4ce3cb8931982415f5c457d01cd6046208db44
CRs-Fixed: 2212903
2018-03-27 13:52:38 -07:00
Jeff Johnson
179762a2ae qcacld-3.0: Remove obsolete "change country code" callbacks
In HDD there are currenty two different callback functions which were
formerly used to synchronize country code changes with SME:
- wlan_hdd_change_country_code_callback()
- wlan_hdd_change_country_code_cb()

With the "converged regulatory" implementation these are no longer
used, so remove them.

Change-Id: I65da8160c9057383ad3ccf3b2094b4c52fcf5a47
CRs-Fixed: 2212959
2018-03-27 13:52:35 -07:00
Jeff Johnson
5fe539bd73 qcacld-3.0: Relocate stats-related APIs
Currently quite a few stats-related APIs which have no dependency upon
wireless extensions (wext) are located in wlan_hdd_wext.c. Relocate
the following functions to wlan_hdd_stats.c:
wlan_hdd_get_rssi()
wlan_hdd_get_snr()
wlan_hdd_get_linkspeed_for_peermac()
wlan_hdd_get_link_speed()
wlan_hdd_get_peer_rssi()
wlan_hdd_get_peer_info()
wlan_hdd_get_class_astats()
wlan_hdd_get_station_stats()
wlan_hdd_get_temperature()

Change-Id: I72a35f33648f20bbb2c01bb81cea409f6e80ee00
CRs-Fixed: 2212113
2018-03-27 13:52:32 -07:00
Liangwei Dong
22810e8615 qcacld-3.0: Add ini for BT/WLAN chain assignment
We need to set chainmask for BT /wlan share antenna
case, e.g:
2.4g:wlan 1x1 on chain 1, BT chain 0
5G: wlan 2x2 chain 1&0.

Add ini enableBTChainSeparation, default 0.
If enableBTChainSeparation set 1, chainmask will
be set to FW event though 2x2 case.

Change-Id: Ifc8c2c64824c793b72a7caa878f500c71f722e17
CRs-Fixed: 2206935
2018-03-27 13:52:30 -07:00
nshrivas
2e6712029a Release 5.2.0.71M
Release 5.2.0.71M

Change-Id: I48b95e98320eca9ee4c49e2e1543306a9df89968
CRs-Fixed: 774533
2018-03-27 12:16:19 -07:00
nshrivas
aff068c260 Release 5.2.0.71L
Release 5.2.0.71L

Change-Id: I860b24bdbe9cd6a87ac91c264016f239971bd1b6
CRs-Fixed: 774533
2018-03-27 07:29:10 -07:00
Tushnim Bhattacharyya
3b99f4b181 qcacld-3.0: Deprecate enum sir_conn_update_reason
Deprecate enum sir_conn_update_reason & use enum
policy_mgr_conn_update_reason from policy manager component.

Change-Id: Id592d5405235f29a962a2a7d8b679fa4363f556d
CRs-Fixed: 2213000
2018-03-27 07:29:09 -07:00
Vignesh Viswanathan
e25af7882c qcacld-3.0: Send 11k offload disable to FW during RSO Stop
Currently 11k offload command is sent to FW as part of RSO Start and
not explicit 11k offload disable command is sent to the FW. In case of
STA+STA concurrency cases, while 11k offload is enabled for the 2nd
STA after STA 1 is disconnected, the FW asserts because it has 11k
offload enabled for STA 1 and has not deconfigured it yet.

Send 11k offload disable command as part of RSO Stop during disconnect
to the FW so that it deconfigures 11k for the currently enabled STA
and re-configures for the second STA without assertion.

Change-Id: I8a1bcb8906c809f451f7ab3df3e4c671cef062fd
CRs-Fixed: 2208649
2018-03-27 07:29:06 -07:00