Commit Graph

2677 Commits

Author SHA1 Message Date
SaidiReddy Yenuga
deaa781b63 qcacld-3.0: Modify CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT to 30
propagation from qcacld-2.0 to qcacld-3.0

Currently CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT is 0 in code
and in ini file it is 30. If this parameter is undefined in ini
file, then this KEEP alive feature gets disabled.

Change CFG_INFRA_STA_KEEP_ALIVE_PERIOD_DEFAULT value to 30
in code.

CRs-fixed: 1049206
Change-Id: Iff0933842b13482e9949473a4c8a48bf83230cc1
2016-10-25 04:07:06 -07:00
qcabuildsw
1520e4374d Release 5.1.0.32V
Release 5.1.0.32V

Change-Id: Ic895a5c33c0c4e9cbc8a18001183be46a866ac53
CRs-Fixed: 688141
2016-10-24 16:45:20 -07:00
Selvaraj, Sridhar
6ada9ffd8c qcacld-3.0: Remove redundant mem zero after malloc in SME
Remove redundant qdf_mem_zero after qdf_mem_malloc since output
of qdf_mem_malloc already gives zeroed memory[i.e. kzalloc].

Change-Id: I15e16bbe8caa8c03ffd1fefdabd415619393e117
CRs-Fixed: 1079684
2016-10-24 16:45:19 -07:00
Selvaraj, Sridhar
2cad651a1b qcacld-3.0: Remove redundant mem zero after malloc in DP/UTILS/CDS/WMA
Remove redundant qdf_mem_zero after qdf_mem_malloc since output
of qdf_mem_malloc already gives zeroed memory[i.e. kzalloc].

Change-Id: I385afd98a134c2d79189090ce4c84c4b3adcc94e
CRs-Fixed: 1079691
2016-10-24 16:45:17 -07:00
Selvaraj, Sridhar
5cc4af4405 qcacld-3.0: Avoid buffer overflow
qcacld-2.0 to qcacld-3.0 propagation.

scnprintf returns the number of characters which are actually
written in the buffer. Currently there is no check, while filling
buffer. Hence, a situation might arise where the len is greater
than the sizeof of buffer. Later, this buffer is copied to user space
through api copy_to_user and since the len is greater than buffer
size, buffer over-flow would occur.

As a part of fix, make sure that buffer over write doesn't occur.

Change-Id: I652979cb26fd7fff36ee54f9ec60132453ac7913
CRs-Fixed: 908252
2016-10-24 16:45:15 -07:00
Selvaraj, Sridhar
6a8dcdff2b qcacld-3.0: Remove redundant mem zero after malloc in MAC
Remove redundant qdf_mem_zero after qdf_mem_malloc since output
of qdf_mem_malloc already gives zeroed memory[i.e. kzalloc].

Change-Id: Icdf64ffbf858201dfa315ab3c75bb32d5eca5fa8
CRs-Fixed: 1079679
2016-10-24 16:45:13 -07:00
Selvaraj, Sridhar
af90144173 qcacld-3.0: Remove redundant mem zero after malloc in HDD
Remove redundant qdf_mem_zero after qdf_mem_malloc since output
of qdf_mem_malloc already gives zeroed memory[i.e. kzalloc].

Change-Id: I3190e56ad7b8c12c4dc8357b1e1238e04f651d6a
CRs-Fixed: 1079659
2016-10-24 16:45:11 -07:00
qcabuildsw
4d91e770a4 Release 5.1.0.32U
Release 5.1.0.32U

Change-Id: I0cb887a7005338fbabf723c38e965b20a38089b8
CRs-Fixed: 688141
2016-10-24 16:02:56 -07:00
Poddar, Siddarth
176c436ae7 qcacld-3.0: Add iwpriv pktlog command to alter pktlog buffer size
Implement iwpriv pktlog command to change the pktlog buffer size.
This command is effective only if pktlog disable is issued previously.
This command needs two argument. First argument should be "3" which
denotes to set the pktlog buff size. Second argument should be the
pktlog size which user wants to change.
For eg, "iwpriv wlan0 pktlog 3 2" will change the buffer size to 2 MB.

Change-Id: Ifa27916667198c3fdc1c51d0e38564869405e041
CRs-Fixed: 1072584
2016-10-24 16:02:54 -07:00
qcabuildsw
db91e23d42 Release 5.1.0.32T
Release 5.1.0.32T

Change-Id: I1350cc6aab024fc46bc207f8c5a1b048e581b147
CRs-Fixed: 688141
2016-10-24 15:25:12 -07:00
Yun Park
8f289c8d2d qcacld-3.0: Fix offload enable status checking after interface setup
Since IPA offload enable status checking before interface setup,
IPA offload enable/disable will not be performed properly.
Fix to check IPA offload enable status after interface setup or
before interface cleanup.

Change-Id: Ifd950d7d629750afd526db56de2f4b656f1f87de
CRs-Fixed: 1079440
2016-10-24 15:25:11 -07:00
qcabuildsw
50dc3fa44b Release 5.1.0.32S
Release 5.1.0.32S

Change-Id: I71d35cd8fbba38231d8905a806bf44aff29a21db
CRs-Fixed: 688141
2016-10-24 14:48:09 -07:00
Houston Hoffman
03890f55a4 qcacld-3.0: Abort cds_deinit_policy_mgr if context is null
Avoid null pointer de-reference.

Change-Id: I5f07ab5eba0d24512a06c5426427ad67ee6f798d
CRs-Fixed: 1081073
2016-10-24 14:48:08 -07:00
qcabuildsw
d9ae863260 Release 5.1.0.32R
Release 5.1.0.32R

Change-Id: I744567b176917d158bc06c71c86630e60f4dac13
CRs-Fixed: 688141
2016-10-24 13:48:57 -07:00
Krunal Soni
b0e1e533f0 qcacld-3.0: Fix to respond to SA query req only in-case of SAP-PMF
As per the PMF offload feature, all STA related SA queries should
be handled in firmware and all SAP related SA queries should be
handled in host.

Current driver is assuming that both are handled in firmware which
is not true. Fix the design by checking if session is STA or SAP and
take the decision based on that.

Change-Id: I1a89e509068ecb85a6c5655dd43e01a39d660b2e
CRs-Fixed: 1081177
2016-10-24 13:48:56 -07:00
qcabuildsw
2d7fb16abc Release 5.1.0.32Q
Release 5.1.0.32Q

Change-Id: I40b358130eacdb586291097679a8565cb566078e
CRs-Fixed: 688141
2016-10-24 11:29:56 -07:00
Zhang Qian
a3bcbe00ff qcacld-3.0: Extend cfg80211 configure API
qcacld-2.0 to qcacld-3.0 propagation

Extend cfg80211 configure API:
1. Vendor attribute for non aggregate/11g sw retry threshold.
2. Vendor attribute for aggregate sw retry threshold.
3. Vendor attribute for MGMT frame sw retry threshold.
4. Vendor attribute for CTRL frame sw retry threshold.
5. Vendor attribute for propagation delay.

Change-Id: Icdcb0e83432299014fb46507bdd5978b76919ab5
CRs-Fixed: 1035577
2016-10-24 11:29:55 -07:00
jge
3e6f638fcd qcacld-3.0: Fix tcp chksum can't be enabled for sap
propagation from qcacld-2.0 to qcacld-3.0.

In STA+AP or AP+AP mode, if the sap's interface is
created rather than using wlan0, there is no setting
for tcp chksum offload.

Change-Id: I346ea186ad26c5f5a0fd4c3dee4a39b102570de7
CRs-Fixed: 1063245
2016-10-24 11:29:54 -07:00
qcabuildsw
afeb1d6b34 Release 5.1.0.32P
Release 5.1.0.32P

Change-Id: I08bd05b5b5bf005a2e772b27538840f1dba77d98
CRs-Fixed: 688141
2016-10-24 10:58:55 -07:00
Kapil Gupta
c797b62f4c qcacld-3.0: Fix memory leak issue
qcacld-2.0 to qcacld-3.0 propagation

Memory allocated to Ibss peers for IEs info is not getting freed
in some cases.
Add changes to fix memory leak.

CRs-Fixed: 1075406
Change-Id: Ie22b70cb5050c2646e3c2c12fcbdf66255c1284b
2016-10-24 10:58:54 -07:00
Deepthi Gowri
e2e3dfd997 qcacld-3.0: Use system time instead of jiffies for BSS received time
qcacld-2.0 to qcacld-3.0 propagation

During late suspend jiffies will not be incremented. Because of this
scan results are not age out as the delta of current time and the BSS
received time is not correct.

To address this, use the system time instead of jiffies for the
BSS received time and also make sure to use system time in all
other functions.

CRs-Fixed: 1018460
Change-Id: Ia14b84f1039dc4ffec6ad63550fed21e932f8012
2016-10-24 10:58:53 -07:00
qcabuildsw
c1b06710ed Release 5.1.0.32O
Release 5.1.0.32O

Change-Id: I01f93a142506296e8f0f58cc0f54cc0df5d9e31c
CRs-Fixed: 688141
2016-10-24 10:28:42 -07:00
Arunk Khandavalli
2dc0c9658a qcacld-3.0: Protect con mode change with possible race condition
Presently there is a small window where there is a possible race condition
when con mode change happens at the same time as a ssr.

Protect the same by validating the context. Also move the hdd_init
to module_init so that ssr/qdf infrastructure are always present
when the driver is loaded.

Change-Id: Id14ebef7b5bbafaa799752620973ce03ab0bdd8c
CRs-Fixed: 1078405
2016-10-24 10:28:41 -07:00
qcabuildsw
6733b7fb49 Release 5.1.0.32N
Release 5.1.0.32N

Change-Id: I6fcb0e323415a22144c23eadf65c2e1f48646bae
CRs-Fixed: 688141
2016-10-24 09:56:29 -07:00
Naveen Rawat
91df30a191 qcacld-3.0: Trigger BUG ON only if recovery is disabled
When firmware event times out, panic only if recovery is disabled else
return failure so that driver load can fail gracefully.

Change-Id: I90d110af370842fcd2bc8cc11008d1524c99332e
CRs-Fixed: 1077315
2016-10-24 09:56:28 -07:00
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