Enable the early stop scan feature by default and also
modify the default values as per the request from the
firmware
CRs-Fixed: 1036474
Change-Id: I0f2596633084ea97e64fb2c7d9975052d1ac98fb
qcacld-2.0 to qcacld-3.0 propagation
Firmware sends 0x127 as the invalid snr value when it is in a
state of unable to get it from either a beacon or data packet
CRs-Fixed: 939255
Change-Id: Ia45a8c4acd6a54ff3e56b192c11cea0df97eadaf
TDLS wider band width is not yet supported, but it is
incorrectly advertised in TDLS action frames.
Remove the wider bandwidth advertisement from VHT IE
in TDLS action frames.
Change-Id: I66f0e5d147af93100a7780b14636ba6438330584
CRs-Fixed: 1028205
The channel width of the TDLS direct link
on the base channel shall not exceed the
channel width of the BSS to which the
TDLS peer STAs are associated.
Add changes in the host driver to restrict
TDLS channel width to equal to BSS channel
width
Change-Id: I5c640164b3c747a55bde3efc553d2861057ebf42
CRs-Fixed: 1028201
Propagation from qcacld-2.0 to qcacld-3.0
When a radar is indicated from WMA to HDD, it happens in a soft
irq context and the dfs_radar_found flag is set by acquiring
a mutex which leads to apps crash. The crash happens if the mutex for
dfs_radar_found flag is being held by the main thread and as a result
the soft irq thread seeking the same mutex will be put in the kernel
sleep queue leading to apps crash as sleeping is not allowed in soft irq
context.
Fix the issue by using spinlock instead of mutexes. An exception
has been made to use the spinlock in the main thread context to
work around the complications involving for radar indication
callback to happen in worker thread context instead of soft
irq context.
Change-Id: I4bc01ac8991c593ffcaf6ee532f4594cb8beba16
CRs-Fixed: 928394
This is qcacld-2.0 to qcacld-3.0 propagation
Add NDI role check in __lim_fresh_scan_reqd to allow request for fresh scan.
Change-Id: Icea6228c6491d8b7d0588a699fe7f16d0dd0d3f1
CRs-Fixed: 1030380
This is qcacld-2.0 to qcacld-3.0 propagation.
Add NDP reason codes in deferred response sent for NDP commands so that
failure during processing of NDP cmds can be notified to service layer.
Change-Id: I731b520fde226c351464d94033a1ced2888a4d18
CRs-Fixed: 962367
This is qcacld-2.0 to qcacld-3.0 propagation.
Remove usage of following attributes from NAN HDD APIs:
1) QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REQUEST
2) QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_RESPONSE
3) QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND
Change-Id: I545662de41d4a22a3f1a9f5e037eeaa4050b9d42
CRs-Fixed: 962367
This is qcacld-2.0 to qcacld-3.0 propagation.
Delete NAN data peer if first NDP_CONFIRM for a peer is received
with REJECT and active ndp instances as 0.
Change-Id: I9d3ff7166fb437f8af79e5bd915022d452b16a35
CRs-Fixed: 962367
This is qcacld-2.0 to qcacld-3.0 propagation
Free up memory allocated for NDP SME commands at sme_close, so that in
the event of unload while NDP command response was awaited, resources
can be freed.
Change-Id: I287ad77cbdca4b816f38bea436173b88e6eafc93
CRs-Fixed: 962367
This is qcacld-2.0 to qcacld-3.0 propagation.
Remove usage of following attributes from NAN HDD APIs:
1) QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO_LEN
2) QCA_WLAN_VENDOR_ATTR_NDP_NUM_INSTANCE_ID
3) QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_STATUS_CODE
4) ndp_cfg from NDP_CONFRIM
5) Remove mandatory check for ndp_app_info in data initiator
Change-Id: I17fe580661f836d45a518a330a63d2c6de8bcf28
CRs-Fixed: 962367
qcacld-2.0 to qcacld-3.0 propagation
Firmware sends an array of:
{ndp instance id, vdev id, active ndp num, peer mac address}
for the NDP instances that are to be terminated.
Host driver deletes the peers that have 0 active ndp instances and
sends the entire list of ndp instance id's to the service layer.
Change-Id: I325843ce7fb8198466cb66ce66710cef999d4581
CRs-Fixed: 962367
This is qcacld-2.0 to qcacld-3.0 propagation.
Add implementation of NAN Data End request.
Change-Id: Iddd22a83b0763dab2e7398f4d2cf5b9ada58225a
CRs-Fixed: 962367
This is qcacld-2.0 to qcacld-3.0 propagation.
Add implementation for auto accept NDP responder request.
Change-Id: I1d610696cded1f91b646712e3f8c27659bbae6af
CRs-Fixed: 962367
This is qcacld-2.0 to qcacld-3.0 propagation
Add implementation for non-auto accept NDP responder request.
Change-Id: I2ced33cfa0faf487d8e31275493e8d85251e8c59
CRs-Fixed: 962367
qcacld-2.0 to qcacld-3.0 propagation
Make changes in __hdd_hard_start_xmit API registered with OS to enable
data path for NAN Data Interface.
Change-Id: I1d54c79da127b1dac7ea8c8e0e855e043571ad77
CRs-Fixed: 962367
qcacld-2.0 to qcacld-3.0 propagation
Add host side changes to handle INITIATOR_REQ, INITIATOR_RSP,
NEW_PEER_IND and NDP_CONFIRM_IND to support NDP data initiator
request.
Change-Id: I10bf88d3fff27e1f842b720a598c923983c06c90
CRs-Fixed: 962367
qcacld-2.0 to qcacld-3.0 propagation
NAN Data Interface also supports ipv4 and ipv6 address notification
like any other netdev. Enable ipv4/ipv6 notifications for NDI mode.
Change-Id: I6ad281d9b3dce66db7bbfd198296d0d086ccf4fb
CRs-Fixed: 962367
qcacld-2.0 to qcacld-3.0 propagation
Make ndp_ctx part of station context, that way NAN data is assumed
to be another device role like P2P client and IBSS in the station mode.
CRs-Fixed: 962367
Change-Id: I93e2c14c59d4cbdfaadcd31e73fe0e3681843ce3
qcacld-2.0 to qcacld-3.0 propagation
The NAN Data Interface is required to be deleted if start bss
fails for some reason.
Change-Id: I83f2511a9df569fde791a0da110ac873fb0381dd
CRs-Fixed: 962367
qcacld-2.0 to qcacld-3.0 propagation
Add nan_datapath_enabled flag in HDD context to represent current
disable/enable state of NAN datapath feature.
Do not modify the .ini configured value because getConfig command
will show incorrect results.
Change-Id: Ib0b44168aca24802d8bd86b0665a1060ba3a1bf5
CRs-Fixed: 962367
qcacld-2.0 to qcacld-3.0 propagation
All the wake events for all NAN datapath event IDs are sent
through a single event WOW_NAN_DATA_EVENT. Its handler derives
the event ID from the TLV tag and calls individual NDP event
handlers.
- Enable WOW_NAN_DATA_EVENT.
- Translate WOW event TLV tag to NDP event ID.
- Call NDP event handlers for WOW_REASON_NAN_DATA.
Change-Id: Ia99bb6b0e1637d052945ed6f4878237b3612bb20
CRs-Fixed: 962367
Disallow any form of STA+SAP+P2P concurrency scenarios
since three port concurrency is not planned to be
supported currently. This is the only three port
combination that the user can exercise with the new
framework changes in place and hence disallowing this
combination to avoid crashes.
Change-Id: I384d4412e5790aaf34175f78163ec98b73588fea
CRs-Fixed: 1032912
With WLAN use case, FPC(Fast Power Collapse) wakeup latency is
too long. Then some use case, FPC feature break performance.
To ensure CPU wakeup, if detected high throughput, vote for
performance qos not to activate FPC.
Change-Id: I4a8dca19ce32944769e85ba5beeae93bb49b29a9
CRs-fixed: 1026370
With dual cluster system, to reduce cache miss issue and for
lower latency, RX thread should run on big cluster.
When high bandwidth detected by WLAN host driver,
RX thread should move to big cluster. And low
throughput required, RX thread should go to little core CPU
to reduce power consumption.
CPU affinity should controlled by Online CPU and throughput
requirement. Even high throughput is required, if PERF CPU is
not online, RX thread cannot attach to PERF CPU.
Change-Id: I85591d3c74973c40388a04353b1d32e009a46ec1
CRs-fixed: 1026370
To lower the power consumption caused by the P2P listen operation,
it is offloaded from supplicant and host driver to firmware,
so that supplicant and host driver can be in power save mode during the
listen operation.
Change-Id: Iedd990427afe22842faecc7b29e4f38220c75684
CRs-fixed: 1032877
Update log level in wma_mgmt_rx_process to ensure driver unload
is not stuck due to excessive error logs.
Change-Id: Icf4a238620c6501a9648cccc05424fa1c617ed13
CRs-Fixed: 1028694
gPolicyManagerEnable INI item is no longer needed. Remove this
INI item and make policy manager code enabled by default.
Change-Id: I57822f47325c03e940b2802fb02900c64d3587e1
CRs-Fixed: 1034888
gEnableM2MLimiation INI item is no longer needed. Remove entire
code related to this INI item.
Also, remove all concurrency related code defined for emulation platform
within QCA_WIFI_3_0_EMU MACRO
CRs-Fixed: 1034888
Change-Id: Iccfd1dd2935634d2552f4eaa5cd9d3ab59a7596a
In cds_complete_action API when cds_get_connection_for_vdev_id is
called to get connection index, it may return
MAX_NUMBER_OF_CONC_CONNECTION to notify that no such connection found.
up-on receiving this max number with current bug, the
cds_complete_action API goes in to infinite loop which causes driver to
crash at the end.
Fix this bug by updating API's loop correctly.
Change-Id: Iaf722afb4a450c66f976ad1a3ae4b697657216ef
CRs-Fixed: 1034888
Currently the HDD code uses a variety of logging APIs. In qcacld-3.0
HDD should converge on a unified set of logging APIs. Update
wlan_hdd_cfg80211.c to use the unified set of APIs. Since there are a
large number of changes in this file, perform the conversion in
phases.
For phase 6 set the HDD_DISALLOW_LEGACY_HDDLOG flag so that no future
changes can introduce new instances of legacy logging.
Change-Id: Ic990eccfa1e58980aed321352d9a2aca92f736a6
CRs-Fixed: 937644
Currently the HDD code uses a variety of logging APIs. In qcacld-3.0
HDD should converge on a unified set of logging APIs. Update
wlan_hdd_cfg80211.c to use the unified set of APIs. Since there are a
large number of changes in this file, perform the conversion in
phases.
For phase 5 update the following functions:
wlan_hdd_cfg80211_set_privacy
__wlan_hdd_cfg80211_connect
wlan_hdd_disconnect
__wlan_hdd_cfg80211_disconnect
wlan_hdd_cfg80211_set_privacy_ibss
__wlan_hdd_cfg80211_join_ibss
__wlan_hdd_cfg80211_leave_ibss
__wlan_hdd_cfg80211_set_wiphy_params
__wlan_hdd_cfg80211_del_station
__wlan_hdd_cfg80211_add_station
__wlan_hdd_cfg80211_set_pmksa
__wlan_hdd_cfg80211_del_pmksa
__wlan_hdd_cfg80211_flush_pmksa
__wlan_hdd_cfg80211_update_ft_ies
wlan_hdd_cfg80211_update_replay_counter_callback
__wlan_hdd_cfg80211_set_rekey_data
__wlan_hdd_cfg80211_set_mac_acl
wlan_hdd_cfg80211_lphb_ind_handler
__wlan_hdd_cfg80211_testmode
wlan_hdd_testmode_rx_event
__wlan_hdd_cfg80211_set_ap_channel_width
__wlan_hdd_cfg80211_channel_switch
wlan_hdd_convert_nl_iftype_to_hdd_type
Change-Id: Ifcd456d13509fcb861a2d8c2f4c3b5d31266ce41
CRs-Fixed: 937644
Currently the HDD code uses a variety of logging APIs. In qcacld-3.0
HDD should converge on a unified set of logging APIs. Update
wlan_hdd_cfg80211.c to use the unified set of APIs. Since there are a
large number of changes in this file, perform the conversion in
phases.
For phase 4 update the following functions:
__wlan_hdd_change_station
__wlan_hdd_cfg80211_add_key
__wlan_hdd_cfg80211_get_key
__wlan_hdd_cfg80211_set_default_key
wlan_hdd_cfg80211_update_bss_list
wlan_hdd_cfg80211_inform_bss_frame
wlan_hdd_cfg80211_update_bss_db
wlan_hdd_cfg80211_update_bss
wlan_hdd_cfg80211_pmksa_candidate_notify
wlan_hdd_cfg80211_roam_metrics_preauth
wlan_hdd_cfg80211_roam_metrics_preauth_status
wlan_hdd_cfg80211_roam_metrics_handover
hdd_select_cbmode
wlan_hdd_cfg80211_connect_start
wlan_hdd_cfg80211_set_auth_type
wlan_hdd_set_akm_suite
wlan_hdd_cfg80211_set_cipher
wlan_hdd_cfg80211_set_ie
hdd_is_wpaie_present
Change-Id: If41d51bc011d0887b6f73511ac0509bff1722d4a
CRs-Fixed: 937644
Currently the HDD code uses a variety of logging APIs. In qcacld-3.0
HDD should converge on a unified set of logging APIs. Update
wlan_hdd_cfg80211.c to use the unified set of APIs. Since there are a
large number of changes in this file, perform the conversion in
phases.
For phase 3 update the following functions:
__wlan_hdd_cfg80211_wifi_configuration_set
__wlan_hdd_cfg80211_wifi_logger_start
__wlan_hdd_cfg80211_wifi_logger_get_ring_data
wlan_hdd_add_tx_ptrn
__wlan_hdd_cfg80211_offloaded_packets
__wlan_hdd_cfg80211_monitor_rssi
hdd_rssi_threshold_breached
__wlan_hdd_cfg80211_get_link_properties
hdd_get_bpf_offload_cb
hdd_post_get_bpf_capabilities_rsp
hdd_get_bpf_offload
hdd_set_reset_bpf_offload
__wlan_hdd_cfg80211_bpf_offload
__wlan_hdd_cfg80211_sap_configuration_set
wlan_hdd_cfg80211_register
*wlan_hdd_cfg80211_get_ie_ptr
wlan_hdd_validate_operation_channel
wlan_hdd_set_dhcp_server_offload
__wlan_hdd_cfg80211_change_bss
wlan_hdd_change_client_iface_to_new_mode
__wlan_hdd_cfg80211_change_iface
Change-Id: If07608bc7280ab7acd018a547f424d3f3fd6d629
CRs-Fixed: 937644
Currently the HDD code uses a variety of logging APIs. In qcacld-3.0
HDD should converge on a unified set of logging APIs. Update
wlan_hdd_cfg80211.c to use the unified set of APIs. Since there are a
large number of changes in this file, perform the conversion in
phases.
For phase 2 update the following functions:
__wlan_hdd_cfg80211_get_tdls_capabilities
wlan_hdd_send_avoid_freq_event
__is_driver_dfs_capable
wlan_hdd_sap_cfg_dfs_override
wlan_hdd_cfg80211_start_acs
__wlan_hdd_cfg80211_do_acs
__wlan_hdd_cfg80211_get_supported_features
__wlan_hdd_cfg80211_set_scanning_mac_oui
__wlan_hdd_cfg80211_get_features
__wlan_hdd_cfg80211_set_ext_roam_params
wlan_hdd_check_dfs_channel_for_adapter
wlan_hdd_disable_dfs_chan_scan
__wlan_hdd_cfg80211_disable_dfs_chan_scan
__wlan_hdd_cfg80211_keymgmt_set_key
__wlan_hdd_cfg80211_get_logger_supp_feature
wlan_hdd_send_roam_auth_event
Change-Id: I54e01d92eafffc2a0c5d966158072f3b2dd101a4
CRs-Fixed: 937644
This is qcacld-2.0 to qcacld-3.0 propagation
Till now kickout event was only handled for SAP role.
The patch handles wmi event for peer kickout due to
inactivity in STA role.
Change-Id: I437dc3e07737bb653e969406b64cd9dad56fbbcd
CRs-Fixed: 861917
This is qcacld-2.0 to qcacld-3.0 propagation.
Destroy sap_dfs_cac_timer at callback function based on check if timer
is still valid.
Change-Id: Ib8b92ac11444b63a0d8002edff35cd9238bb2573
CRs-Fixed: 967907
This is qcacld-2.0 to qcacld-3.0 propagation
Fix memory leak in del_bss_rsp params in case del_bss_rsp
is dropped at lim due to invalid session id.
Change-Id: I4dfc8697fd5248d8a16ad5a248d5f06e86a105d0
CRs-Fixed: 970601
Currently the HDD code uses a variety of logging APIs. In qcacld-3.0
HDD should converge on a unified set of logging APIs. Update
wlan_hdd_cfg80211.c to use the unified set of APIs. Since there are a
large number of changes in this file, perform the conversion in
phases.
For phase 1 update the following since automated conversion is not
properly processing these function:
wlan_hdd_cfg80211_acs_ch_select_evt()
wlan_hdd_cfg80211_set_key_wapi()
Change-Id: I31e5ea914ed1f5aa807ff0ce1c67b6ed64620dee
CRs-Fixed: 937644
Check vdev_id against WMA_MAX_SUPPORTED_BSS instead of wma->max_bssid in
function wma_process_gtk_offload_req.
Change-Id: Ife4e8c907f835f766d6d44815418158cfd305343
CRs-Fixed: 1034255
Check pSession->pCurRoamProfile against NULL before dereferencing it in
function csr_is_p2p_session_connected.
Change-Id: I61f681dfd4ff3c7fd2e443f54f6b1713db088250
CRs-Fixed: 1034255
In function sme_register_ftm_msg_processor, remove access to mac_ctx which is
dereferencing a NULL pointer.
Change-Id: I6e2db08703b3beff23f9398d9d1c88e1c6bcb229
CRs-Fixed: 1034255