ieee80211_band has long since been deprecated and is superseded by
nl80211_band. Replace IEEE80211_BAND_2GHZ with NL80211_BAND_2GHZ to
prevent compilation issues against 4.7+ linux kernels.
Change-Id: I6a6fcc7eb88ff040504c8df22e779898a45081ae
CRs-Fixed: 2002311
The features exposed by the setMCBCFilter ioctl are exposed via newer,
standard APIs. Strip out setMCBCFilter, and replace it with instructions
for moving to the new APIs. Relatedly, clearMCBCFilter is not needed,
so remove it completely.
Change-Id: I091ca239240ea1b35afe755cfa791b83bcd91409
CRs-Fixed: 2000747
The global HDD context contains mc/bc filter setting fields that
ultimately go unused. Remove these fields and clean up call sites as
appropriate.
Change-Id: I51dcc45d7f2d5ac8a55574b0c6dc0b30458047b8
CRs-Fixed: 1116051
A new HDD Request Management framework is being deployed. One of the
requirements of that framework is that every request API must have a
provision for a caller-supplied context, and that caller-supplied
context must be returned to the caller when the callback function is
invoked.
Currently sme_encrypt_decrypt_msg() is not aligned with that
requirement. There is no provision for a caller-supplied context;
instead the HDD handle which is stored in the MAC context is always
returned.
In order to prepare sme_encrypt_decrypt_msg() for the HDD Request
Management framework update the curent implementation as follows:
1) Remove the separate registration and deregistration of the callback
function pointer, and instead make the callback function and
callback context parameters to sme_encrypt_decrypt_msg().
2) Pass the callback context when invoking the callback function.
Change-Id: I6e8c5405393f4cb732d9874ac07145caf5e95cac
CRs-Fixed: 2000026
A new HDD Request Management framework is being deployed. One of the
requirements of that framework is that every request API must have a
provision for a caller-supplied context, and that caller-supplied
context must be returned to the caller when the callback function is
invoked.
Currently sme_get_bpf_offload_capabilities() is not aligned with that
requirement. There is no provision for a caller-supplied context;
instead the HDD handle which is stored in the MAC context is always
returned.
In order to prepare sme_get_bpf_offload_capabilities() for the HDD
Request Management framework update the curent implementation as
follows:
1) Remove the separate registration and deregistration of the callback
function pointer, and instead make the callback function and
callback context parameters to sme_get_bpf_offload_capabilities().
2) Pass the callback context when invoking the callback function.
Change-Id: I3967fdf9b002d961b0ec9a7ea78e7783b47c50a3
CRs-Fixed: 2000024
Currently sme_get_link_speed() requires that the caller pass an
allocated buffer as the lsReq param. This violates the general
concensus that SME should make no assumptions about the buffers passed
to it by HDD.
Update the implementation such that SME allocates the buffer that will
be passed in the message, and update HDD to use the stack.
Note that this is a prerequisite for moving the linkspeed request
processing to the new HDD Request Management infrastructure.
Change-Id: I09257855c6c260bb4a6ca91eb79bb24813cc5efa
CRs-Fixed: 2000023
There is a possibility of excessive logging by logging thread
(cds_get_log_indicator) if SSR is in progress, which may lead
to thread stuck and thereby WD bark may happen.
Remove unnecessary log in cds_get_log_indicator, to stop excessive
logging, due to which thread is stuck.
Change-Id: I1747d92b23e208903452ad43b8c84c7b444db922
CRs-Fixed: 2001035
Memory leak in csr_scan_save_roam_offload_ap_to_scan_cache
due to not freeing memory allocated using
csr_get_parsed_bss_description_ies.
Free memory in csr_scan_save_roam_offload_ap_to_scan_cache
function.
Change-Id: I6487dc5964e0e671b429f256e001fcb9d117f44b
CRs-Fixed: 1116621
In hdd_bus_bw_work_handler() change the timer call from
qdf_timer_start to qdf_timer_mod as following race condition
could be possible:
1. Softirq fires and schedules the delayed work,
2. Disconnect reconnect occurs and timer gets stopped and
started from mc thread, and
3. The delayed work tries to do the add timer and kernel BUG ON
because the timer is already running.
CRs-Fixed: 1116652
Change-Id: I69ad49518c7b59b27069ed4212bebbc4992e3362
Invalidate the scan entry if there is no active session and
do not inform it to the user space.
Change-Id: I134cceef0cfc54f68966d3287d92bdf6b35e33fc
CRs-Fixed: 1114216
While sending WMI_REQUEST_STATS_CMDID, wma stores the request in a
allocated buffer, which is freed once firmware response is received.
However in case of driver unload, before we receive firmware event,
the buffer will not be freed and that will be leaked. Fix the memory
leak by checking for these buffers at time of wma_wmi_service_close.
Change-Id: Ie8fd5faec22ceaba415a26becf98030bc7cc13ce
CRs-Fixed: 1116622
Currently the default keep-alive interval is 30s. From testing we know
90s works just as well. Change the default keep-alive interval to 90s,
up from 30s, for additional power savings.
Change-Id: If6eda06447a459e2803a4919f46cf1e57c93670f
CRs-Fixed: 2001156
Currently, a null data packet keepalive method is used by default. Once
ipv4 address information is received, dynamically switch to using
gratuitous ARP for keepalive instead of null packets.
Change-Id: I475a4bf71376ab6be92fd81070ba7dce48f45151
CRs-Fixed: 2001249
Ensure that you continue processing the list of
network packets even if one of the packets in the queue
is erraneous.
Change-Id: I4962b2e7b83b9519e3da69165760e2ac4114fc20
CRs-Fixed: 2001835
Legacy message posting api cds_send_mb_message_to_mac does not
belong to cds and is relocated to WMA legacy file hence rename
it accordingly.
Change-Id: I68e868b0019896baa91e34418064b33219eef2ca
CRs-Fixed: 2000246
After control path scheduler componentization cds_mq header and
source files are not needed hence delete obsolete cds_mq.h and
cds_mq.c files.
Change-Id: I9cef1086e805d0e5ea7b377d0a2de3512b452572
CRs-Fixed: 2000240
After control path scheduler componentization cds_mq.[ch]
needs to be deleted hence remove legacy UMAC message posting
API to WMA legacy file.
Change-Id: I781a7586cb6dbf635e283eacd38c768a6b7f6d3e
CRs-Fixed: 2000234
After control path scheduler componentization cds_mq.h
HIGH_PRIORITY macro is no longer used hence remove it.
Change-Id: Ied7a2078753686ee2d885b072f2f03a1fd810e9c
CRs-Fixed: 2000214
After control path scheduler componentization cds_mq.h
LOW_PRIORITY macro is no longer used hence remove it.
Change-Id: I633e0eb8097eb1d035a4200018f3d96d6f34b59b
CRs-Fixed: 2000211
Add support for setting fw log mode for msm8998. Change the log mode
from bool type to tristate to support multiple log modes.
CRs-Fixed: 1115611
Change-Id: I6aef023d1e3cb1b68f1520f800af094f6f6decdb
Enable NETIF queues after hdd_roam_register_sta().
When there is a race condition where data transmission after
hdd_association_completion and before roam_register_sta, vdev
information passed in the tx_send is a stale entry from the
previous vdev. Enabling queues after roam_register_sta will
fix this issue.
Change-Id: I67c72de46c05bbdb58188155eb1146dcf6974b16
CRs-Fixed: 1116647
Under situations where the driver detects wifi capabilities are not
being used, it cleans itself up transparently to the kernel and shuts
down. The kernel has been observed calling the reg notifier callback in
these situations, even though no virtual devices are active, which
causes a crash. Gracefully reject the calls into reg notifier by the
kernel in such cases.
Change-Id: I11e68c2224a7abf079d04c92d671f5db0804283e
CRs-Fixed: 1116475
Add a callback to query the control path from
the data path on whether DBS is supported
Change-Id: I4e757624ec0229c5fb8d05862b4c3035f5b00f2f
CRs-Fixed: 1116939
Currently target_if_message queue is registered using target if
module id but de-registered using legacy WMA module ID. Add changes
to de-register target_if_message queue using target if module ID.
Change-Id: I6bc24e4be102ef17da27f09cfb2655465dd3b1e2
CRs-Fixed: 2000203