提交線圖

2652 次程式碼提交

作者 SHA1 備註 日期
qcabuildsw
1a8dee02eb Release 5.1.0.32M
Release 5.1.0.32M

Change-Id: I7700df9562e7be2539724b49243a3361444777d4
CRs-Fixed: 688141
2016-10-20 16:04:41 -07:00
Ankit Gupta
968c351dd7 qcacld-3.0: Set csr_prune_channel_list_for_mode prototype in header file
csr_prune_channel_list_for_mode() is implemented in csr_api_roam.c
but is referenced from both csr_api_roam.c and csr_api_scan.c

Set prototype of csr_prune_channel_list_for_mode in csr_inside_api.h
which is included by both files.

Change-Id: I106d8e25265bcbd16a67ebb23aff030826a02aed
CRs-Fixed: 1076076
2016-10-20 16:04:40 -07:00
Ankit Gupta
72a1c609af qcacld-3.0: Fix double free memory in sme_power_save.c
In sme_ps_enter_wowl_req_params() and sme_ps_exit_wowl_req_params(),
if call to sme_post_ps_msg_to_wma() fails, both caller and callee
frees the message buffer causing double free of memory.

Do not free the memory again in caller function if
sme_post_ps_msg_to_wma returns error.

Change-Id: I92bab9477a07016c44f099e4286178c9d5487a4c
CRs-Fixed: 1076087
2016-10-20 16:04:39 -07:00
qcabuildsw
bf70d020dc Release 5.1.0.32L
Release 5.1.0.32L

Change-Id: I5bd6d11e927bba2f7db4d4b231d62cf507c83dd8
CRs-Fixed: 688141
2016-10-20 16:04:36 -07:00
Houston Hoffman
2741d15264 qcacld-3.0: do cds_sched_deinit_mqs if cds_alloc_ol_rx_pkt_freeq fails
Fix error handling to not leave deinit undone after init.

Change-Id: Ic00aa99f52ecfbc866332b71f5902b9261d8c319
CRs-Fixed: 1079503
2016-10-20 16:04:35 -07:00
Houston Hoffman
5d3f74c518 qcacld-3.0: Remove duplicate cds_deinit_policy_mgr in error handling
hdd_wlan_stop_modules takes care of the cds_deinit_policy_mgr call.
Therefore hdd_wlan_startup doesn not need to directly call this api.

Change-Id: Ic9abbeb44697e6e9a02208eadad48e9a4cdcc16a
CRs-Fixed: 1079503
2016-10-20 16:04:34 -07:00
Houston Hoffman
8d1a6f09c8 qcacld-3.0: Cleanup error handling in hdd_configure_cds
Error paths were missing cleanup steps.

Change-Id: I9178e795f1ff9c3439c3ad43957d111e590f0603
CRs-Fixed: 1079503
2016-10-20 16:04:31 -07:00
Houston Hoffman
160db394b3 qcacld-3.0: use hdd_context_deinit in hdd_context_destroy
Using hdd_context_deinit in hdd_context_destroy reduces redundant code
and ensures that wlan_hdd_cfg80211_deinit is called in all
error casesses.

Change-Id: I7cb98d2934213446c6453e310a3883ffb653f1e6
CRs-Fixed: 1079503
2016-10-20 16:04:28 -07:00
Houston Hoffman
6640cf3cbe qcacld-3.0: Continue hdd_deconfigure_cds despite failures
Cleanup should ignore errors without modifying execution as much
as possible.  If one item was not initialized propperly the
driver should still try to cleanup the rest.  Also continue
the driver unload when this api returns an error.

Change-Id: Ifdda135fe1baaad39c14c1e3d0843ccf964554e0
CRs-Fixed: 1079503
2016-10-20 16:04:26 -07:00
Houston Hoffman
feb36ba5b1 qcacld-3.0: Continue cds_deinit_policy_mgr despite failures
Cleanup should ignore errors without modifying execution as much
as possible.  If one item was not initialized propperly the
driver should still try to cleanup the rest.

Change-Id: If132c40dffc801972ba801bb4a269b5dd9b954ff
CRs-Fixed: 1079503
2016-10-20 16:04:23 -07:00
qcabuildsw
550c29e6f1 Release 5.1.0.32K
Release 5.1.0.32K

Change-Id: I88e4e629ae1f910e98b90ffce36711ae18a293af
CRs-Fixed: 688141
2016-10-20 16:04:21 -07:00
Jeff Johnson
bbaf4e4f62 qcacld-3.0: Fix -Wmissing-prototypes in PLD
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code that is generating warnings. Fix all warnings
in core/pld.

Change-Id: Icef77666d1d1ef214491dcf1fcd56741091cec4f
CRs-Fixed: 1078826
2016-10-20 16:04:14 -07:00
Jeff Johnson
4ae7506db1 qcacld-3.0: Fix -Wmissing-prototypes in sme_qos
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code that is generating warnings. Fix all warnings
in sme_qos.

Change-Id: Ic9b42f91eb9a2563c146965581b5ef321c201bee
CRs-Fixed: 1075575
2016-10-20 16:04:11 -07:00
Jeff Johnson
2f36819243 qcacld-3.0: Properly export SME P2P APIs
There are currently several SME P2P APIs which do not have their
prototypes exported in header files; instead sme_api.c has "extern"
declarations for these APIs. This prevents the compiler from verifying
that the implementations match the declarations, and causes a warning
when the driver is built using -Wmissing-prototypes.  To address this
issue properly export all P2P APIs.

Change-Id: I0389ad753993bf9a8a37d8d9ad5ec466b29c74df
CRs-Fixed: 1075575
2016-10-20 16:04:07 -07:00
Jeff Johnson
414f7ea28f qcacld-3.0: Make hdd_ipa_forward() static
Recently change "qcacld-3.0: ipa exception packet forwarding crash
fix" introduced new code including function hdd_ipa_forward().  This
function is only accessed from within wlan_hdd_ipa.c so it should have
been made static, however it wasn't. And in addition a public
protototype was not defined. This causes a build failure when the
-Wmissing-prototypes switch is used.  To fix this issue make
hdd_ipa_forward() static.

Change-Id: I8432ab734a0305f3d515a17ef324c7f8f60c0ba0
CRs-Fixed: 1080027
2016-10-20 16:04:05 -07:00
qcabuildsw
8f9032a489 Release 5.1.0.32J
Release 5.1.0.32J

Change-Id: I6b0373d14b0c2307b5143323c18bdeb8f4518f0a
CRs-Fixed: 688141
2016-10-20 16:03:17 -07:00
Dhanashri Atre
52f7133d27 qcacld-3.0: API change for per vdev fw stats
Changed the API to support per vdev firmware statistics.
This API change is needed by the WIN team.

Change-Id: If50a767e031e6f203abc01e3dfa26dc59249bb95
CRs-Fixed: 1057751
2016-10-20 16:03:15 -07:00
qcabuildsw
3f65167a02 Release 5.1.0.32I
Release 5.1.0.32I

Change-Id: I56acfe2103bf277d4ed2901e6986bfc7912584fc
CRs-Fixed: 688141
2016-10-20 16:02:50 -07:00
qcabuildsw
fc967593df Release 5.1.0.32H
Release 5.1.0.32H

Change-Id: I5171ca51c4ce4ce7025665a0c9cf6c051f2e4c1b
CRs-Fixed: 688141
2016-10-20 00:51:50 -07:00
Nishank Aggarwal
3f89891dda qcacld-3.0: Change default value of gTDLSExternalControl
qcacld-2.0 to qcacld-3.0 propagation

Currently wpa_supplicant.conf have enabled external control
(“tdls_external_control=1”) & INI settings as Explicit Trigger
by default. So, here is the mismatch of the wpa_supplicant.conf
& INI setting which leads in failure of some test case manually
as well these settings.

Fix the issue by making the default value of gTDLSExternalControl
same as wpa_supplicant.conf.

Change-Id: Ifb187768ac387b6ae5f6bb3283efb48225e1e909
CRs-Fixed: 1074998
2016-10-20 00:51:49 -07:00
qcabuildsw
6d4e09ed8f Release 5.1.0.32G
Release 5.1.0.32G

Change-Id: I5afee8edd3699ff8db10a51ec719a4b45090c25f
CRs-Fixed: 688141
2016-10-20 00:21:29 -07:00
Naveen Rawat
30b845095e qcacld-3.0: Send only one WFA_TPC IE to firmware in scan request
Strip out WFA TPC if present in additional IEs from supplicant and
include that from host driver in scan request sent to firmware.
Without this there will be duplicate WFA TPC IE present in probe
requests.

Change-Id: I3a9045eb647c7579b25b5ee2a81ed60d7b12a1b6
CRs-Fixed: 1077793
2016-10-20 00:21:28 -07:00
Naveen Rawat
2cb788d391 qcacld-3.0: Remove SNR and RSSI request from get station stats
Remove redundant request get_rssi and get_snr from function
__wlan_hdd_cfg80211_get_station. Get Stats request being sent
to firmware in same function is super set of these two request.

Change-Id: I3b478db41da10d9112437415be4775d07decb550
CRs-Fixed: 1078877
2016-10-20 00:21:25 -07:00
qcabuildsw
9f98f6a6f7 Release 5.1.0.32F
Release 5.1.0.32F

Change-Id: Ia8a2a414d7ebd7de4d78cf58bbd80954f9341319
CRs-Fixed: 688141
2016-10-19 17:42:27 -07:00
Kai Liu
bdd5fcb83f qcacld-3.0: Add interface to get channel width in sap mode
qcacld-2.0 to qcacld-3.0 propagation

Add iwpriv interface to get channel width when working in sap mode.

Change-Id: I9900655861032636af1b4147ec6322e5aa76e614
CRs-Fixed: 1009861
2016-10-19 17:42:26 -07:00
Liangwei Dong
5047d513ab qcacld-3.0: fix wlan suspend fail after switch to non-dfs channel
qcacld-2.0 to qcacld-3.0 propagation

In SAP DFS test, DUT can't goto suspend if SAP started
on DFS channel and later switched to non-dfs channel due to
Radar detected.
During SAP Starting, driver will acquire the wake lock
for dfs channel by hdd_hostapd_channel_prevent_suspend
in the eSAP_CHANNEL_CHANGE_EVENT event handler. But the SAP
is still in STOPPED state. We acquire the wake lock again
after SAP started in eSAP_START_BSS_EVENT event handler.
This causes driver to acquire wake lock twice for the
same dfs channel. And finally causes the device can't
suspend normally.
This change add check in eSAP_CHANNEL_CHANGE_EVENT
handler to only call hdd_hostapd_channel_prevent_suspend
when SAP is in started state to avoid lock/unlock mismatch.

Change-Id: Ief90697b7b6f19f6fcf0ab94f973a37e74ca3366
CRs-Fixed: 972657
2016-10-19 17:42:24 -07:00
Yingying Tang
4f2dedec3f qcacld-3.0: Avoid memory leak in htt_h2t_dbg_stats_get()
Propagate from qcacld-2.0 to qcacld-3.0

Add htt_htc_pkt_free() in htt_h2t_dbg_stats_get() to avoid memory
leak in the error case.

Change-Id: Ie0cd4939706046370c7a0ce4053be1103637f769
CRs-Fixed: 979671
2016-10-19 17:42:22 -07:00
Yingying Tang
2fb1438bf3 qcacld-3.0: Add USB VID and PID for QCA9379
Propagate from qcacld-2.0 to qcacld-3.0

Currently there is no QCA9379 device id in USB
device id table. Add USB VID and PID for QCA9379.

Change-Id: I7ae39513ff5fc1f0b36f3c05dc0e783532a8d4a3
CRs-Fixed: 1048598
2016-10-19 17:42:20 -07:00
qcabuildsw
80393cdb64 Release 5.1.0.32E
Release 5.1.0.32E

Change-Id: I5df6d3c7dc43c86bb78ca252fc4a554ed624f19a
CRs-Fixed: 688141
2016-10-19 15:18:21 -07:00
Varun Reddy Yeturu
0425186793 qcacld-3.0: LFR3: Fix to handle peer MAP/UNMAP events
Enabling flow steering may send the peer map/unmap events
from the target to the host in a random order.When host
does not receive them in expected sequence, there is an
issue with peer management.Fix the issue by making the
firmware send the events through a single copy engine in
the same order they were generated and thus host can handle
the events properly

Change-Id: If2396a0bf943f2833e1e3a44d778054a76c65ada
CRs-Fixed: 1078976
2016-10-19 15:18:20 -07:00
Orhan K AKYILDIZ
ba175fc413 qcacld-3.0: Add a NAPI mode for roaming
Add a new mode with a pair of new NAPI events, NAPI_EVT_USR_SERIAL
and NAPI_EVT_USR_NORMAL, which allows client force NAPI to move all
instances onto the same CPU and peg them there (blacklist); and
to move back to normal mode of operation.

This part implements the HDD portion. Goes with the corresponding
HIF code.

Change-Id: I4c45d18348ef27d8814c5d0321d1fd13c96fff34
CRs-Fixed: 1078976
2016-10-19 15:18:18 -07:00
qcabuildsw
0b555320f5 Release 5.1.0.32D
Release 5.1.0.32D

Change-Id: I0d2cd5ab5257e2719203c664878d07a69f2416f8
CRs-Fixed: 688141
2016-10-19 10:45:31 -07:00
Srinivas Girigowda
02c084dd6c qcacld-3.0: Delete SSR timer after WLAN reinitiation is complete
This is a qcacld-2.0 to qcacld-3.0 propagation.

In hdd_wlan_re_init(), SSR timer is deleted before WLAN reinitiation is fully
complete. Between SSR timer delete and WLAN reinitiation is complete,
there are NL socket related calls which can sleep under low memory conditions (or etc)
because of which timer is deleted but isLogpInProgress is not reset to FALSE.
This can potentially fail the south-bound requests for a brief amount of time.

Hence it is always better to delete the SSR timer only after
WLAN reinitiation is complete.

Change-Id: I699438ff3e0c2f7b81e0bbf81be6f514841e194b
CRs-Fixed: 1017011
2016-10-19 10:45:30 -07:00
Srinivas Girigowda
6147c58dff qcacld-3.0: Replace DEBUG macro with WLAN_DEBUG
This is a qcacld-2.0 to qcacld-3.0 propagation.

pr_debug() should not appear by default in kernel log (kmsg).
DEBUG is a kernel macro, since host driver is using the same name macro,
pr_debug log statements are appearing in kmsg.

Fix this by moving the code under DEBUG to WLAN_DEBUG and
remove DEBUG macro from Kbuild.

Change-Id: I5bb385f91f9b6ba15629a5878625fefc21d4a7e1
CRs-Fixed: 1003261
2016-10-19 10:45:28 -07:00
Srinivas Girigowda
90cdd3cda2 qcacld-3.0: Acquire read lock before accessing the address list
This is a qcacld-2.0 to qcacld-3.0 propagation.

WLAN host driver access the inet6_dev address list without acquiring
the read lock, if the kernel network stack deletes the address while
driver is accessing the list, it can lead to referencing already
freed address by the driver.

Hence, fix is to take the read lock before accessing the address list.

Change-Id: I934e9f2039f3ab8540e439b9e8a87efced98807c
CRs-Fixed: 1048897
2016-10-19 10:45:26 -07:00
Srinivas Girigowda
0855e869a2 qcacld-3.0: Remove hardcoded value and set qpower appropriately
This is a qcacld-2.0 to qcacld-3.0 propagation.

The issue is when host re-enables QPower after resume, it is setting
WMI_STA_PS_ENABLE_QPOWER to 1 (which is for QPower = 2) always and never
WMI_STA_PS_ENABLE_QPOWER to 2 (which is for QPower = 5).
This means one suspend/resume is enough to disable QPower = 5 and
change to QPower = 2.

Fix this by removing the hardcoded value of 1 and use qpower_config instead.

Change-Id: I553c1691d5d7e98c2db8c9e56e2ba68ae27af506
CRs-Fixed: 1040737
2016-10-19 10:45:24 -07:00
qcabuildsw
c97f53922e Release 5.1.0.32C
Release 5.1.0.32C

Change-Id: I16a37eda38164620f4414c9f964c2af1cf30cf9b
CRs-Fixed: 688141
2016-10-19 07:32:57 -07:00
Rajeev Kumar Sirasanagandla
b79b546281 qcacld-3.0: Add ini to force sap into 11n for 11ac
qcacld-2.0 to qcacld-3.0 propagation

In the current implementation, there is no way to force softap
to configure in 11n, when request from hostapd is for 11ac.

This change adds the ini parameter gSapForce11NFor11AC, when enabled,
configures softap in 11n mode if hostapd request is for 11ac.

Change-Id: I22da3971c90726a13a4b7d9c2c9b9b535d0d6809
CRs-Fixed: 1019018
2016-10-19 07:32:56 -07:00
qcabuildsw
d80e8d3a63 Release 5.1.0.32B
Release 5.1.0.32B

Change-Id: If7961795fd5c54632c036bed1ed7eeb7d7238200
CRs-Fixed: 688141
2016-10-19 06:53:33 -07:00
Rajeev Kumar Sirasanagandla
4a716ad992 qcacld-3.0: Change max value of gEnableDynamicDTIM
In the current code, maximum possible value of gEnableDynamicDTIM is 5,
but for power save testing there is requirement to increase it by 4.
Accordingly, CFG_ENABLE_DYNAMIC_DTIM_MAX is changed to 9.

Change-Id: I93b8356bc703c3d1d4fa1a89601056cbd3c8b262
CRs-Fixed: 1079163
2016-10-19 06:53:32 -07:00
qcabuildsw
726a53539d Release 5.1.0.32A
Release 5.1.0.32A

Change-Id: I975390fd0043adfc17120e9d5ddf50268f4aba9c
CRs-Fixed: 688141
2016-10-19 06:15:22 -07:00
Rajeev Kumar Sirasanagandla
2dab3ec9fa qcacld-3.0: Avoid sending ENABLE RTSCTS cmd in FTM
FTM mode doesn't have session ID and no need to send wma_cli_set_command
for WMI_VDEV_PARAM_ENABLE_RTSCTS which is per vdev.

Change-Id: I1583439e3d4a9f8c52f687c8f5bc1340860a1614
CRs-Fixed: 1079143
2016-10-19 06:15:21 -07:00
qcabuildsw
5c1eb5d42f Release 5.1.0.32
Release 5.1.0.32

Change-Id: I065378f438e83b4deec7f7aaa1962e0da4037d16
CRs-Fixed: 688141
2016-10-18 19:54:29 -07:00
Leo Chang
63d7361152 qcacld-3.0: enable ipa hw dynamic detection capabiliry
Fix IPA V2 compile problem fix.
MODEM included platform and non-MODEM platform should use
the same binary. Then WLAN cannot disable IPA data path
through INI nor compile time.
WLAN host driver should dynamically detect IPA HW status and
should enable or disable IPA data path based on IPA HW status.

Change-Id: I2d34aaa9f1616e621ff9585c69c4618463e05c65
CRs-fixed: 1078825
2016-10-18 19:54:28 -07:00
Leo Chang
11545d6679 qcacld-3.0: enable ipa hw dynamic detection capabiliry
MODEM included platform and non-MODEM platform should use
the same binary. Then WLAN cannot disable IPA data path
through INI nor compile time.
WLAN host driver should dynamically detect IPA HW status and
should enable or disable IPA data path based on IPA HW status.

Change-Id: I43a673fcfc7ecfbd2d3ca488034dc4a84e20b258
CRs-fixed: 1078825
2016-10-18 19:54:25 -07:00
Leo Chang
a202b52f06 qcacld-3.0: ipa offload data path only support STA and SAP
ipa hardware data path should only support sap/sta mode.
P2PGo, P2PCli and all other mode should not support
IPA offload data path. Any ipa event came from non-sta/sap adapter
should be ignored and return success.

Change-Id: If2b6e9026d351ac5fb3c87e8f65df1615dfb154a
CRs-fixed: 1078289
2016-10-18 19:54:23 -07:00
Leo Chang
69c3969138 qcacld-3.0: ipa exception packet forwarding crash fix
When WLAN subsystem is in suspend state, if packet deliever to
WLAN FW, WLAN FW will crash with bad state. So, if WLAN subsystem
is in suspend state, host should not pump down packet to FW.
IPA subsystem could not know WLAN power state. Then WLAN HDD
should inspect WLAN power state. If suspend state, packet should
queueing into local queue and when resume, send packet to FW

Change-Id: I60e1e8f0fff40c9f0ca4a798b76878548ca89ad7
CRs-fixed: 1077078
2016-10-18 19:54:21 -07:00
Yun Park
4d968dfdc0 qcacld-3.0: Support bigger Tx MSDU ID partition
When both host and FW support a new partition, FW uses host use
the new parition HTT_TX_IPA_NEW_MSDU_ID_SPACE_BEGIN.
If FW doesn't support a new partition, host falls back to use old
HTT_TX_IPA_MSDU_ID_SPACE_BEGIN.
Handshaking is done through WMI_READY and WMI_INIT.

Change-Id: I974c931e1b4b2d84e809ec19537a09b679932568
CRs-Fixed: 1072812
2016-10-18 19:54:18 -07:00
Yun Park
f8d6a12438 qcacld-3.0: Fix HDD IPA stability issues
SKBs received through IPA exception path are not allocate by WLAN
driver and we should not pass these SKBs to driver SKB debug hash
infrastructure(for free clean up). So use kfree_skb instead of
qdf_nbuf_free for IPA exception data path.
Add ssr protection and wlan_hdd_validate_context in hdd_ipa_w2i_cb.

Change-Id: I593efad97cbe2629bf0b96cbde587d092b81babb
CRs-Fixed: 1076635
2016-10-18 19:54:16 -07:00
Yun Park
a27049adf3 qcacld-3.0: Fix to disable MCC path for DBS and TX_FLOW_CONTROL_V2
Add code to check MCC for DBS case, and remove MCC mode switch
message to IPA when TX_FLOW_CONTROL_V2 is defined.

Change-Id: Ic09d1cbcb2df98b4b62b4fff27d44b67ce57c196
CRs-Fixed: 1077246
2016-10-18 19:54:14 -07:00