sap_ctx is leaked in SSR test, step as:
1.1 wlan1 is added by __wlan_hdd_add_virtual_intf for sap.
1.2 sap_ctx is created in __wlan_hdd_add_virtual_intf->hdd_start_adapter.
1.3 ssr happens just after creating wlan1 but without open it.
1.4 no interface is opened by checking hdd_check_for_opened_interfaces,
then iface_idle_work(hdd_iface_change_callback) is scheduled when
stop sta interface.
As sap_ctx is still used for sap restart in SSR. So release it
once all the interfaces are down.
Change-Id: I1a522818f3e505d6aa828058cb585d8f07690824
CRs-Fixed: 2389030
Originally struct hdd_adapter only used the legacy term session_id to
reference a session. To align with converged naming it was desirable
to change this to vdev_id. In order to ease the transition change
Id92b1a7bb9721564ba01184809fec98be2143545 ("qcacld-3.0: Alias vdev_id
to session_id in hdd_adapter") replaced the session_id field with a
union that contains both a session_id and a vdev_id field. Subsequent
changes replaced all session_id field references with vdev_id.
Now that all references to hdd_adapter field session_id have been
changed to vdev_id, remove the union that was previously added,
leaving behind just the vdev_id field.
Change-Id: I7a2e0812dcd9e9a9f229d1e310785710ab9d4acf
CRs-Fixed: 2393156
Originally struct hdd_adapter only used the legacy term session_id to
reference a session. To align with converged naming it is desirable to
change this to vdev_id. In order to ease the transition change
Id92b1a7bb9721564ba01184809fec98be2143545 ("qcacld-3.0: Alias vdev_id
to session_id in hdd_adapter") replaced the session_id field with a
union that contains both a session_id and a vdev_id field. This allows
vdev_id and session_id to both be used to access the same data item.
To continue the transition replace the session_id field references
with vdev_in in the following files:
- wlan_hdd_active_tos.c
- wlan_hdd_apf.c
- wlan_hdd_cfg.c
- wlan_hdd_debugfs_offload.c
- wlan_hdd_debugfs_roam.c
- wlan_hdd_disa.c
- wlan_hdd_ext_scan.c
- wlan_hdd_ipa.c
- wlan_hdd_lpass.c
- wlan_hdd_nan_datapath.c
- wlan_hdd_nud_tracking.c
- wlan_hdd_object_manager.c
- wlan_hdd_ocb.c
- wlan_hdd_oemdata.c
- wlan_hdd_p2p.c
- wlan_hdd_p2p_listen_offload.c
- wlan_hdd_packet_filter.c
- wlan_hdd_power.c
- wlan_hdd_regulatory.c
- wlan_hdd_sap_cond_chan_switch.c
- wlan_hdd_scan.c
- wlan_hdd_spectralscan.c
- wlan_hdd_subnet_detect.c
- wlan_hdd_sysfs.c
- wlan_hdd_tdls.c
- wlan_hdd_tsf.c
- wlan_hdd_wmm.c
- wlan_hdd_wowl.c
Change-Id: Ia3a884afc57f40ddbe99d740eecf05ec6ff44155
CRs-Fixed: 2393157
Originally struct hdd_adapter only used the legacy term session_id to
reference a session. To align with converged naming it is desirable to
change this to vdev_id. In order to ease the transition change
Id92b1a7bb9721564ba01184809fec98be2143545 ("qcacld-3.0: Alias vdev_id
to session_id in hdd_adapter") replaced the session_id field with a
union that contains both a session_id and a vdev_id field. This allows
vdev_id and session_id to both be used to access the same data item.
To continue the transition replace the session_id field references
with vdev_in in the following files:
- wlan_hdd_assoc.c
- wlan_hdd_hostapd_wext.c
- wlan_hdd_softap_tx_rx.c
- wlan_hdd_stats.c
- wlan_hdd_tx_power.c
- wlan_hdd_tx_rx.c
Change-Id: I8f35530e6c9331c57f6c2ef0245b324b9a96ef20
CRs-Fixed: 2393155
Originally struct hdd_adapter only used the legacy term session_id to
reference a session. To align with converged naming it is desirable to
change this to vdev_id. In order to ease the transition change
Id92b1a7bb9721564ba01184809fec98be2143545 ("qcacld-3.0: Alias vdev_id
to session_id in hdd_adapter") replaced the session_id field with a
union that contains both a session_id and a vdev_id field. This allows
vdev_id and session_id to both be used to access the same data item.
To continue the transition replace the session_id field references
with vdev_in in the following files:
- wlan_hdd_ioctl.c
- wlan_hdd_main.c
- wlan_hdd_ota_test.c
Change-Id: I0411cf77bdc41fe72c9ebe85264a93957c66c191
CRs-Fixed: 2393154
Originally struct hdd_adapter only used the legacy term session_id to
reference a session. To align with converged naming it is desirable to
change this to vdev_id. In order to ease the transition change
Id92b1a7bb9721564ba01184809fec98be2143545 ("qcacld-3.0: Alias vdev_id
to session_id in hdd_adapter") replaced the session_id field with a
union that contains both a session_id and a vdev_id field. This allows
vdev_id and session_id to both be used to access the same data item.
To continue the transition replace the session_id field references
with vdev_in in the following files:
- wlan_hdd_hostapd.c
- wlan_hdd_rssi_monitor.c
- wlan_hdd_wext.c
Change-Id: If11580cd3e0c4c8443224ac201f7f62301b262aa
CRs-Fixed: 2393153
Originally struct hdd_adapter only used the legacy term session_id to
reference a session. To align with converged naming it is desirable to
change this to vdev_id. In order to ease the transition change
Id92b1a7bb9721564ba01184809fec98be2143545 ("qcacld-3.0: Alias vdev_id
to session_id in hdd_adapter") replaced the session_id field with a
union that contains both a session_id and a vdev_id field. This allows
vdev_id and session_id to both be used to access the same data item.
To continue the transition replace the session_id field references
with vdev_in in the following files:
- wlan_hdd_cfg80211.c
Change-Id: I429bf4dbaa173b9c5400f48b03c425141c119288
CRs-Fixed: 2393152
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirSmeStartBssRsp typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a reference to the underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so in conjunction rename the underlying
struct to be in compliance.
Change-Id: I41cdd14871296342b70ab4d580dbacde3795d3a6
CRs-Fixed: 2393735
Per the Linux Coding Style mixed-case names are frowned upon, so
rename HTProfile to ht_profile everywhere it appears.
Change-Id: I9103a9f31a6157134f9ea08ebefbe53bb50a043f
CRs-Fixed: 2393733
Currently, driver allows VDEV-RESTART on SAP interface in order to
channel switch or hidden ssid connection when roaming is in progress
on STA interface. This leads to two simultaneous vdev starts or
vdev-restart in FW which causes the FW to assert.
Add changes to reject the channel switch for SAP or in hidden ssid
connection if roaming is in progress on any STA interface.
Change-Id: I1cea389021049779b5aa00145e2470cd67158edd
CRs-Fixed: 2390235
Change I3b1ee6254de158ad6408dc8c61e83be571e180af refactored 3
APF related INI's into CFG framework. This was merged with a
a copying error causing INI string "gActiveMcBcBpfMode" being
replaced by "gActiveUcBpfMode". Fix this by correcting the
string name.
Fix copying error by replacing with the correct INI string.
Change-Id: I41576b1b22287f7c0fd751ce96ceddb8f7cbc62a
CRs-Fixed: 2393504
After receiving the scan results per channel,
sme_ese_send_beacon_req_scan_results prepares beacon report
response info for each BSS in cur_result list. While parsing
cur_result list driver blindly checks bss_counter against
SIR_BCN_REPORT_MAX_BSS_DESC(4) to reach max/last BSS in cur_result
list this results out of bound error. Bound check for bss_counter
should be against the number of bss found in scan results per
channel to avoid OOB issue.
Validate the value of bss_counter against the number of bss found
in scan results.
Change-Id: I70152c4f62c6fcff755f13f3851c9683bdc2231c
CRs-Fixed: 2387198
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirSmeHTProfile typedef does
not meet any of those criteria, so replace it with a reference to the
underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so in conjunction rename the underlying
struct to be in compliance.
Change-Id: I3686dbfadfc144d06267e6162c5642aa61a894fd
CRs-Fixed: 2393734
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirSmeStartBssReq typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a reference to the underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so in conjunction rename the underlying
struct to be in compliance.
Change-Id: I194d3de88ec3b877ca7e77abb42559c330b5ef69
CRs-Fixed: 2393732
Currently many modules use the scheduler_post_msg API which
doesn't allow the driver to know about the src, and destination
modules.
Fix is to call scheduler_post_message which has src, dest, and
the que id.
Change-Id: Ia5c43fe3ceeb7db9dde6241cbabac0ce48f88061
Per the Linux Coding Style mixed-case names are frowned upon, so
rename addIeParams to add_ie_params everywhere it appears.
Change-Id: Id003bf004d42d5313a932309a47bf82f228eda0c
CRs-Fixed: 2393731
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirAddIeParams typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a reference to the underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so in conjunction rename the underlying
struct to be in compliance.
Change-Id: I8454ba04318e6ef9bacc422138e5a41bd8769f05
CRs-Fixed: 2393730
Per the Linux Coding Style mixed-case names are frowned upon, so
rename htConfig to ht_config everywhere it appears.
Change-Id: I3d9478162c0fdc11f30c216cb8a82fbb6b8b85ce
CRs-Fixed: 2393729
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirHTConfig typedef does not
meet any of those criteria, so replace it (and the "tp" variant) with
a reference to the underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names and
so-called Hungarian notation, so in conjunction rename the underlying
struct to be in compliance.
Change-Id: I567cc4502a2332b391efc0b09c7802afd88bee5b
CRs-Fixed: 2393728
tSirSmeStatusChangeCode contains enums eSIR_SME_IBSS_PEER_DEPARTED and
eSIR_SME_IBSS_NEW_PEER which are no longer used. Therefore remove the
enums along with the underlying data structures that used to support
those notifications.
Change-Id: I92a905c759144de65911a2c6d8c8e8c0ca0f7d10
CRs-Fixed: 2392451
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirSupChnl typedef does not
meet any of those criteria, so replace it (and the "tp" variant) with
a reference to the underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names
and so-called Hungarian notation, so in conjunction rename the
underlying struct to be in compliance.
Change-Id: If9542312f3c12d03f05be3b364dba23c6509f9b0
CRs-Fixed: 2392450
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirMacPowerCapInfo typedef
does not meet any of those criteria, so replace it (and the "tp"
variant) with a reference to the underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names
and so-called Hungarian notation, so in conjunction rename the
underlying struct to be in compliance.
Change-Id: I51fcb7d5d37d86b3ee9b5b104d48b0ad5354018b
CRs-Fixed: 2392403
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirSmeReadyReq typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a reference to the underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names
and so-called Hungarian notation, so in conjunction rename the
underlying struct to be in compliance.
Change-Id: Ibf51b14ced59634a77ca8add5b7ac9f6d07215de
CRs-Fixed: 2392402
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirRegisterMgmtFrame typedef
does not meet any of those criteria, so replace it (and the "tp"
variant) with a reference to the underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names
and so-called Hungarian notation, so in conjunction rename the
underlying struct to be in compliance.
Change-Id: I9950f99a69a26f5f1e519f141dc15a407be9d584
CRs-Fixed: 2392401
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSirSupportedRates typedef does
not meet any of those criteria, so replace it (and the "tp" variant)
with a reference to the underlying struct.
Further note the Linux Coding Style frowns upon mixed-case names
and so-called Hungarian notation, so in conjunction rename the
underlying struct to be in compliance.
Change-Id: I5007379a50223b6de85830e7ae389e65cdb8e4d3
CRs-Fixed: 2392398
As per new requirements to debug game latency related issues,
implement an iwpriv command which:
1) sends a bitmask to FW's Wireless Latency Manager module (WLM).
2) receives from WLM a measurement header along with measurement data.
3) converts both the header and data to a hexadecimal encoded string.
4) returns the hexadecimal encoded string to userspace
Change-Id: Ic79c4b757fe2d4e806306750250e3c102745c486
CRs-Fixed: 2388920
gTimerMultiplier is only ever handed down to qdf_timer_set_multiplier.
Don't bother keeping a copy in hdd_config.
Change-Id: I901cb95d4fe98efd165b8351052c6dc8a1252b74
CRs-Fixed: 2393093
Remove the following scan and ap protection related ini items:
CFG_AP_ENABLE_PROTECTION_MODE_NAME
CFG_ENABLE_MAC_ADDR_SPOOFING
CFG_SCAN_AGING_PARAM_NAME
Replace the corresponding hdd_config variables and replace
these variable callers with ucfg api from corresponding module.
Change-Id: I99a2659e2151ad285e9451b9e9cc036a199581a3
CRs-Fixed: 2378991
In lim driver should not use the OSIF_ID to
take ref, as this ID is specific to HDD. It
should use WLAN_LEGACY_MAC_ID.
Fix is to use WLAN_LEGACY_MAC_ID in place of
OSIF_ID in lim.
Change-Id: I394d49979384f2d7ef0364e41bd9fd877f9e76bc
CRs-Fixed: 2393423
Stop modules is done and datapath context is cleared as part of
CDS dp close. But, as part of add virtual interface, the following
sequence is followed:
1) hdd_open_adapter
2) start_ modules from hdd_psoc_idle_restart
3) hdd_start adapter.
hdd_open_adapter accesses the dp_soc to read TCP UDP checksum ini
value which is invalid access as dp_soc is not initialized.
Move the ini access logic to hdd_start adapter from hdd_open_adapter
as dp context is initialized in start_modules called as part of
hdd_psoc_idle_restart.
Change-Id: I1fbbcc7f8faf3d461c5625ee8cfb60a01c4f94d2
CRs-Fixed: 2393342
As part of the effort to use a single definition for the maximum number
of vdevs, replace WMA_MAX_SUPPORTED_BSS with WLAN_MAX_VDEVS.
Change-Id: I7f0bd615b65e21dc0052933d5e194ca650336b42
CRs-Fixed: 2393167
As part of the effort to use a single definition for the maximum number
of vdevs, replace CSR_ROAM_SESSION_MAX with WLAN_MAX_VDEVS.
Change-Id: I71f9c02acec23314f65ac9d5ee3401ed7b4af580
CRs-Fixed: 2393166
As part of the effort to use a single definition for the maximum number
of vdevs, replace SIR_MAX_SUPPORTED_BSS with WLAN_MAX_VDEVS.
Change-Id: I1b1823c74c0fc741ba3ed72f13854ac5bbb20e35
CRs-Fixed: 2393159