Commit Graph

14596 Commits

Author SHA1 Message Date
nshrivas
e0e1cc3369 Release 5.2.0.139Y
Release 5.2.0.139Y

Change-Id: Id6f38361e4234a8d77fcfd802ee4dfc9924a2650
CRs-Fixed: 774533
2019-07-18 07:17:19 -07:00
wadesong
f2d0db7930 qcacld-3.0: Replace channel ID with channel frequency
Replace channel ID(rx_channel) with channel frequency(
rx_freq) in struct bss_description.

Remove a few camel cases in function
lim_collect_bss_description.

Change-Id: Ic6051fa62d2fe0aa10a6d2a3568aeff75daa813f
CRs-Fixed: 2492155
2019-07-18 07:17:19 -07:00
wadesong
2c01763092 qcacld-3.0: Replace channel ID with channel frequency
Replace channel ID(channelIdSelf) with channel frequency(
freq_self) in struct bss_description.

Change-Id: I2fa9576aaa7503cf18d6600cc37465e42c8826aa
CRs-Fixed: 2492150
2019-07-18 07:17:14 -07:00
nshrivas
cc2eae2f45 Release 5.2.0.139X
Release 5.2.0.139X

Change-Id: I1e6b161e7ad42758cbce4ac9166bb33c2228fc49
CRs-Fixed: 774533
2019-07-18 01:07:13 -07:00
Qun Zhang
a055e9cb3b qcacld-3.0: Align the output of getChannelList under sta/hostapd mode
As requirement, it's also needed to print country code in iwpriv
getChannelList under hostapd mode, align the output of getChannelList
in sta/hostapd mode. At the same time, in __iw_get_channel_list(),
the wrqu->data.length should be (the actual channel number+1), not
sizeof(struct channel_list_info), otherwise there would be many
zeros if call iw_get_channel_list() directly.

Change-Id: I1e0fc1a026bf6c3fff2947ab4712a1800214ec0c
CRs-Fixed: 2476458
2019-07-18 01:07:11 -07:00
nshrivas
838cb0eae2 Release 5.2.0.139W
Release 5.2.0.139W

Change-Id: I5bbdf6532acd8d93be1473bc9d4c7b09dd7df5c7
CRs-Fixed: 774533
2019-07-17 20:18:48 -07:00
Abhishek Singh
a227e75e12 qcacld-3.0: Avoid policy_mgr_hw_mode_transition_cb in atomic context
wma_roam_event_callback can get called in atomic context from
wma_wake_event_piggybacked for reason WMI_ROAM_REASON_HO_FAILED
which lead to acquiring of pm_ctx->qdf_conc_list_lock mutex lock
in atomic context.

To fix this post msg to scheduler thread to call the policy mgr
API in scheduler thread context

Change-Id: I6b75de64a33559b73a7edc73e1100cfb3a1f507d
CRs-Fixed: 2491147
2019-07-17 20:18:47 -07:00
nshrivas
6494883b78 Release 5.2.0.139V
Release 5.2.0.139V

Change-Id: I001e1e7b25c19e12528fd3b96d0eefe1f1285d49
CRs-Fixed: 774533
2019-07-17 17:42:24 -07:00
nshrivas
1ebd9b5b56 Release 5.2.0.139U
Release 5.2.0.139U

Change-Id: Idd7feaea375653bd43c86ce051d2ddfeead21ff8
CRs-Fixed: 774533
2019-07-17 14:19:46 -07:00
Sandeep Puligilla
ff7a6e320a qcacld-3.0: RRM: Update 2G scan active dwell time
2G active dwell time parameter is not updated as per
requested duration value from 11k supported AP.

Updated 2G active dwell time scan request parameter
with the beacon measurement requested duration.

Change-Id: I93ab71aea3317e21dab4eccce8c698a6fe3a366d
CRs-Fixed: 2487725
2019-07-17 14:19:45 -07:00
nshrivas
f6008fc3c0 Release 5.2.0.139T
Release 5.2.0.139T

Change-Id: Ief0452f1c29e4a44e5c14867a45c564be141eb99
CRs-Fixed: 774533
2019-07-17 09:45:26 -07:00
nshrivas
ba55c91343 Release 5.2.0.139S
Release 5.2.0.139S

Change-Id: I9d28c61a67e81259eeef1f67fef42c5ef0d8cde6
CRs-Fixed: 774533
2019-07-17 07:13:41 -07:00
wadesong
91a2c1bd5c qcacld-3.0: Replace channel ID with channel frequency
Replace channel ID(channelId) with channel frequency(
chan_freq) in struct bss_description.

Add code for chan_freq's value population in the same
struct wherever channelId's value population occures.

Remove a few camel cases detected by checkpatch.

Change-Id: I84d193b67f642df310997865ec6e1b62e3518f98
CRs-Fixed: 2488826
2019-07-17 07:13:40 -07:00
nshrivas
b0778b31a3 Release 5.2.0.139R
Release 5.2.0.139R

Change-Id: I53a7e85d18667b1ac4feff6072097d7c49cc55e8
CRs-Fixed: 774533
2019-07-17 02:15:33 -07:00
wadesong
b96f3ba708 qcacld-3.0: Replace channel ID with channel frequency
Replace channel ID(currentReqChannel) with channel frequency(
curr_req_chan_freq) in struct pe_session.

Remove a few camel cases captured by checkpatch.

Change-Id: I56b5d411632ae3b7069fcfac843626435c5b27a2
CRs-Fixed: 2488084
2019-07-17 02:15:32 -07:00
nshrivas
3954abf5ce Release 5.2.0.139Q
Release 5.2.0.139Q

Change-Id: I9b3af230c884b9458ee3c47626731a661c010c61
CRs-Fixed: 774533
2019-07-17 01:00:34 -07:00
Bala Venkatesh
bfb6f202bf qcacld-3.0: Return success status for stop_ap command in case of SSR
If stop_ap is given to driver in case of SSR and other FW down cases,
because of invalid vdev id and validate context, failure
status is given to kernel. In such case beacon interval value
is not reset and that will lead to faliure of
subsequent set beacon commands.

In case of validate context failure, return success to upper layer
so that kernel variables like beacon interval can be cleaned up.

Change-Id: I03748a87ffcf38a260134a54fe5dce8f77f08739
CRs-Fixed: 2472089
2019-07-17 01:00:33 -07:00
nshrivas
9e68a72969 Release 5.2.0.139P
Release 5.2.0.139P

Change-Id: I2b75d7fbc5f20a34445ff964baccb22e322e674d
CRs-Fixed: 774533
2019-07-16 18:40:12 -07:00
Chaoli Zhou
678a32b2dd qcacld-3.0: Properly set IPA RX params for WDI 1.0
In the htt_ipa_uc_get_resource, rx2_rdy_ring is from
pdev->ipa_uc_rx_rsc.rx2_ind_ring, rx2_proc_done_idx is
from pdev->ipa_uc_rx_rsc.rx2_ipa_prc_done_idx, but
rx2_ind_ring & rx2_ipa_prc_done_idx are not used for
WDI 1.0, just only used for WDI 2.0, which initialized in
the htt_rx_ipa_uc_alloc_wdi2_rsc. So as for Rome that use
WDI 1.0, these two variables are not initialized and thus
they are NULL pointers. Therefore this change can fix NULL
pointer deference for WDI 1.0 when CONFIG_IPA_WDI_UNIFIED_API
is defined and meanwhile QCA_WIFI_3_0 used to distinguish WDI 2.0
and WDI 1.0 IPA RX params.

Change-Id: I0378753dcedde4f398885d930a4cbbb2c854c110
CRs-Fixed: 2483879
2019-07-16 18:40:11 -07:00
nshrivas
098231f017 Release 5.2.0.139O
Release 5.2.0.139O

Change-Id: Iba9c4b58c2822a8c77a1f7d5009d0f9989fa5182
CRs-Fixed: 774533
2019-07-16 17:15:01 -07:00
Saket Jha
7741e86998 qcacld-3.0: Implement QDF API for cpumask
In cds_sched_find_attach_cpu function, change calls to functions
cpumask_clear, cpumask_set_cpu, and cpumask_setall to instead use the
QDF abstraction of these functions qdf_cpumask_clear,
qdf_cpumask_set_cpu, and qdf_cpumask_setall.

Change-Id: Ibd62e4d0f38ad3b8f2483e6cf40d56fcb70cba10
CRs-Fixed: 2486827
2019-07-16 17:14:55 -07:00
Kiran Kumar Lokere
d34e41fd41 qcacld-3.0: Remove current band check during new band setting
Current band value is updated with new setting and the new band
setting is allowed only if the new band setting value is lower
configuration than the current one else it fails the new band
setting. If user configures band setting to lower value and
if later setting value has higher configuration then the current
band check fails the new setting.

Remove the current band check during new band setting by runtime
user configuration.

Change-Id: I3facf99e567e34de3eb675f29962bf809040244e
CRs-Fixed: 2486679
2019-07-16 17:14:49 -07:00
Liangwei Dong
03e080c45a qcacld-3.0: Change beacon tx WMI API under feature flag
Add feature flag WLAN_WMI_BCN to compile Beacon tx APIs
selectively.

Change-Id: Ie2b4ad0ae7a7c6de7286ed0b215084060a4f34c6
CRs-Fixed: 2483531
2019-07-16 17:14:44 -07:00
nshrivas
a1ab99134e Release 5.2.0.139N
Release 5.2.0.139N

Change-Id: Ia689a3bdd9ef3f6900893963b87044b84a64c972
CRs-Fixed: 774533
2019-07-16 15:53:37 -07:00
Rajeev Kumar Sirasanagandla
902680eec5 qcacld-3.0: Fix invalid check in softap API
Some of softap APIs like hdd_softap_register_sta() contain sta_id
validation check against maximum value of HDD_MAX_ADAPTERS before
accessing adapter->sta_info[sta_id].

Since the maximum size of adapter->sta_info[] is WLAN_MAX_STA_COUNT
and less than HDD_MAX_ADAPTERS (used in sta_id index validation)
array out of bounds access is possible.

To fix this, validate sta_id index against maximum value of
WLAN_MAX_STA_COUNT instead of HDD_MAX_ADAPTERS.

Change-Id: I18390a76a3bee852a9d6ca3dde4382fa94387594
CRs-Fixed: 2486518
2019-07-16 15:53:37 -07:00
nshrivas
21974e374d Release 5.2.0.139M
Release 5.2.0.139M

Change-Id: Idfa57dc3408fdb7d60bde1d9427476cab9cbb5dd
CRs-Fixed: 774533
2019-07-16 12:14:52 -07:00
Tushnim Bhattacharyya
2a1e7f23bc qcacld-3.0: Replace channel with frequency in switch_channel_ind
Replace channel ID with frequency in struct switch_channel_ind.

Change-Id: I33a4da4271b083c166beebcec33ebed493072f38
2019-07-16 12:14:51 -07:00
nshrivas
b8bcccc63e Release 5.2.0.139L
Release 5.2.0.139L

Change-Id: I0eaa83c295d8ad94f871b85d47a9ed01a69ecdf5
CRs-Fixed: 774533
2019-07-13 13:40:48 -07:00
nshrivas
fc07fe2ac1 Release 5.2.0.139K
Release 5.2.0.139K

Change-Id: I680487c3537e853408e51e33c02fd0d017cf297d
CRs-Fixed: 774533
2019-07-12 02:05:19 -07:00
gaurank kathpalia
79d138972a qcacld-3.0: Update the sap ctx channel list according to acs cfg
Update the sap ctx channel list according to acs cfg, and
not to sap_ctx->channel_list as it would get free in ACS
scan callback, but acs cfg list would remain intact.

Change-Id: I845d5cc3d025b0f2605027f517575f0ad70b07dc
CRs-Fixed: 2478162
2019-07-12 02:05:18 -07:00
nshrivas
20331697db Release 5.2.0.139J
Release 5.2.0.139J

Change-Id: I9557d57827abc6432d68e09189322b3c8e5ccee1
CRs-Fixed: 774533
2019-07-11 23:26:33 -07:00
nshrivas
b66165d382 Release 5.2.0.139I
Release 5.2.0.139I

Change-Id: Ia2341730ad50b621760c49a7f82793753f74ba18
CRs-Fixed: 774533
2019-07-11 04:53:32 -07:00
Nirav Shah
21d055dd05 qcacld-3.0: Fix double free of skb in case of send failure for TSO
In case of TSO, same buffer results in multiple tx_desc after
segmentations. To avoid multiple free of skb ref_cnt is used.
Currently ref_cnt is incremented twice for 1st segment and
not incremented for last segment and in case of failure from
ce_send_fast, ref_cnt is decremented twice.

Above logic don't work in case when TSO packet with segment
count is 1 and ce_send_fast failure is observed.
So, Change logic to increment ref_cnt only once for 1st segment
and avoid reducing ref_cnt twice in case of ce_send_fast failure.

Change-Id: Ia85a6a8f905310b210d6f480a004feb2528a31d7
CRs-Fixed: 2469773
2019-07-11 04:53:32 -07:00
nshrivas
7de51ff1ea Release 5.2.0.139H
Release 5.2.0.139H

Change-Id: Idb48a1ef58555cbdcbc9a0e46d6f757e84c0e42b
CRs-Fixed: 774533
2019-07-11 02:10:28 -07:00
nshrivas
948384dd79 Release 5.2.0.139G
Release 5.2.0.139G

Change-Id: I23d501486fa078952bf99e1d52a19cd9bafb0f4d
CRs-Fixed: 774533
2019-07-11 00:52:04 -07:00
Paul Zhang
da2970b777 qcacld-3.0: Add OEM DATA vendor command support
This command is used to send OEM data binary blobs
from application/service to firmware.

Change-Id: I0b5d7dd5a030b70e59c8581fb51d99079b38385f
CRs-Fixed: 2477332
2019-07-11 00:52:04 -07:00
CNSS_WLAN Service
531e1b7402 Merge "qcacld-3.0: Validate wdev before accessing netdev" into wlan-cld3.driver.lnx.2.0 2019-07-10 20:48:40 -07:00
CNSS_WLAN Service
77db486763 Merge "qcacld-3.0: Acquire sme global lock if wait for set key times out" into wlan-cld3.driver.lnx.2.0 2019-07-10 20:48:39 -07:00
nshrivas
428fd714ab Release 5.2.0.139F
Release 5.2.0.139F

Change-Id: I038d778deaf33a03bdd4176c60f83e8116164eb5
CRs-Fixed: 774533
2019-07-10 10:26:38 -07:00
Bala Venkatesh
8b9bbde04b qcacld-3.0: Add SAP csa reason
Currently, there is no logging for channel switch reason.
Add csa_reason to know the reason for the channel switch.

Change-Id: Iec02d7fa2b1ec51acb97005da220db7de705d7e0
CRs-Fixed: 2483206
2019-07-10 10:26:38 -07:00
nshrivas
afbb3458c4 Release 5.2.0.139E
Release 5.2.0.139E

Change-Id: I3dd634fe0f917535af9f42e572cf1a1311ec663d
CRs-Fixed: 774533
2019-07-10 07:24:12 -07:00
nakul kachhwaha
f2e2dc1523 qcacld-3.0: Issue LFR2.0 connect only in proper CSR state
In DBS, LFR 2.0 takes more time to complete the roaming sequence
due to DBS config changes through policy manager. If roaming is
in progress and cfg80211 issues disconnect, disconnect handler is
supposed to wait for 4 sec before processing. In some DBS scenarios,
4 sec wait timer can expire and disconnect proceed for clean up
before the roaming sequence can complete, results in race condition.
Thus adding CSR state check before proceeding with LFR issue connect.

Change-Id: I794c6bf3f749bba9c339fd18b5202d50091b73a7
CRs-Fixed: 2481706
2019-07-10 07:24:11 -07:00
Pragaspathi Thilagaraj
6bfa475e45 qcacld-3.0: Acquire sme global lock if wait for set key times out
When the set key timeout occurs and there is a disconnect
triggered from userspace during the set key timeout, then the
disconnect proceeds to free the roam_profile for the csr
session. And when the set key timeout handler
csr_roam_wait_for_key_time_out_handler() is invoked, it tries
to access the roam profile from csr_roam_link_up()->
csr_neighbor_roam_info_ctx_init(). This results in a race between the
supplicant thread and scheduler thread.

Acquire sme global lock before call to csr_roam_link_up() to avoid
this deadlock.

Change-Id: I1dd0bec7afa191648d064a1935a33d9612bb89bc
CRs-Fixed: 2486186
2019-07-10 19:38:51 +05:30
hangtian
8215fde26b qcacld-3.0: Validate wdev before accessing netdev
Validate wdev before accessing netdev in __wlan_hdd_cfg80211_set_txpower.
Avoid invalid memory access.

Change-Id: I48af4e458ef7571cfdf9f157cdb8c3427fff4fc7
CRs-Fixed: 2487005
2019-07-10 12:30:23 +08:00
nshrivas
f40d6e75de Release 5.2.0.139D
Release 5.2.0.139D

Change-Id: Ie7708da174877552a30e498bd48dfe35dd6f07d8
CRs-Fixed: 774533
2019-07-09 18:50:57 -07:00
Abhinav Kumar
5bb0a54fdd qcacld-3.0: Correct logic to send an auto-resume indication to userspace
Driver sends the auto-resume flag to user space in the following two
scenarios in order to specify that the driver will automatically resume
reporting beacon or not:

Scenario 1: In the case of Disconnection
Driver should not set an auto-resume flag
QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES in subsequent
QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event irrespective of
do_not_resume flag is present in the recent
QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command.

Scenario 2: In the case of Scan
Driver should send QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES in
subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event only if
do_not_resume flag is set in the recent
QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command.

Currently, there is a possibility to send an auto-resume flag to userspace
in case of disconnection also, which is not as per the expectation of
userspace from the host.

Change-Id: I94cc7dc699b874422d0cf14cd4144c82adb4c2ac
CRs-Fixed: 2485792
2019-07-09 18:50:56 -07:00
Jingxiang Ge
92fd1ee387 qcacld-3.0: Remove CONFIG_MCL in wlan_flush_host_logs_for_fatal
This is to Remove CONFIG_MCL in qcacmn code.
Related qcacmn change is
Ie231e966229789bcd8fa69aef1bc20e9b07a88ae.

Change-Id: I7b9500bc5de74be20d404758b43fca590bbf7caa
CRs-Fixed: 2484900
2019-07-09 18:50:53 -07:00
Jingxiang Ge
ce8ebf794d qcacld-3.0: Remove CONFIG_MCL in wlan_logging_set_fw_flush_complete
This is to remove CONFIG_MCL from qcacmn code.
Related qcacmn change is
Ia417c90060b20b004b1e5408be654ff392a8113d.

Move cds_is_fatal_event_enabled from
wlan_logging_set_fw_flush_complete to
cds_logging_set_fw_flush_complete.

Change-Id: I709c1f9be40d0b09df512d995a72edd5e7a5c820
CRs-Fixed: 2484843
2019-07-09 18:50:50 -07:00
Liangwei Dong
3f4a87ef91 qcacld-3.0: Add P2P GO random chan selection
If p2p GO interface receives the dfs event,
as part of random chan selection logic
driver needs the interface type to query
policy mgr for PCL. To use the new API
utils_dfs_get_vdev_random_channel to support
GO random channel selection.

Change-Id: I098bb84455afc8dbee74f2df07a01499f7d07bd1
CRs-Fixed: 2467803
2019-07-09 18:50:47 -07:00
Abhishek Singh
2547512f9e qcacld-3.0: Avoid wait for hw mode change during SAP CSA
The SAP channel change can be called in scheduler thread and thus
waiting for hw mode change in scheduler thread will always lead to
timeout and thus channel switch failure.

Fix is to avoid wait and continue channel switch after hw mode
change is completed.

Change-Id: I951fab6c95ff2a84d6a619859295b830685fac4e
CRs-Fixed: 2484147
2019-07-09 18:50:41 -07:00