qcacmn: Update for policy manager frequency based APIs
Due to channel number ambiguity with introduction of 6Ghz operation policy manager APIs are updated to use frequency values instead of channel number. Update corresponding caller functions to adapt for frequency usage. Change-Id: Icc882d28d73d55fce5abaedbdff5f90bec095b61 CRs-fixed: 2550069
This commit is contained in:

کامیت شده توسط
nshrivas

والد
0f13d10c75
کامیت
afa4251d04
@@ -267,7 +267,8 @@ static QDF_STATUS wlan_cfg80211_is_chan_ok_for_dnbs(
|
||||
struct wlan_objmgr_psoc *psoc,
|
||||
u8 channel, bool *ok)
|
||||
{
|
||||
QDF_STATUS status = policy_mgr_is_chan_ok_for_dnbs(psoc, channel, ok);
|
||||
QDF_STATUS status = policy_mgr_is_chan_ok_for_dnbs(
|
||||
psoc, wlan_chan_to_freq(channel), ok);
|
||||
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
osif_err("DNBS check failed");
|
||||
@@ -1446,12 +1447,8 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
|
||||
if (ap_or_go_present) {
|
||||
bool ok;
|
||||
|
||||
qdf_status =
|
||||
policy_mgr_is_chan_ok_for_dnbs(
|
||||
psoc,
|
||||
wlan_reg_freq_to_chan(
|
||||
pdev, c_freq),
|
||||
&ok);
|
||||
qdf_status = policy_mgr_is_chan_ok_for_dnbs(
|
||||
psoc, c_freq, &ok);
|
||||
|
||||
if (QDF_IS_STATUS_ERROR(qdf_status)) {
|
||||
osif_err("DNBS check failed");
|
||||
|
مرجع در شماره جدید
Block a user