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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changed the API to support per vdev firmware statistics.
This API change is needed by the WIN team.
Change-Id: If50a767e031e6f203abc01e3dfa26dc59249bb95
CRs-Fixed: 1057751
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
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
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
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