qcacmn: Update the dfs api
To get the channel state for 5g bonded channel using the freq use wlan_reg_get_5g_bonded_channel_state_for_freq. Change-Id: I0b42e9c547ba70259e88137a5a26c238cd66da8d CRs-Fixed: 2756463
このコミットが含まれているのは:
@@ -106,13 +106,12 @@ QDF_STATUS target_if_wake_lock_timeout_release(struct wlan_objmgr_psoc *psoc,
|
||||
* target_if_vdev_start_link_handler() - check for SAP mode and DFS freq
|
||||
to handle link up/down
|
||||
* @vdev: pointer to vdev
|
||||
* @cfreq1 : center freq1
|
||||
* @cfreq2 : center freq2
|
||||
* @is_dfs : is dfs freq
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void target_if_vdev_start_link_handler(struct wlan_objmgr_vdev *vdev,
|
||||
uint32_t cfreq1, uint32_t cfreq2);
|
||||
uint32_t is_dfs);
|
||||
|
||||
/**
|
||||
* target_if_vdev_stop_link_handler() - check for SAP mode to handle link
|
||||
@@ -147,7 +146,7 @@ static inline QDF_STATUS target_if_wake_lock_timeout_release(
|
||||
|
||||
static inline void
|
||||
target_if_vdev_start_link_handler(struct wlan_objmgr_vdev *vdev,
|
||||
uint32_t cfreq1, uint32_t cfreq2)
|
||||
uint32_t is_dfs)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -192,15 +192,21 @@ target_if_vote_for_link_up(struct wlan_objmgr_psoc *psoc,
|
||||
}
|
||||
|
||||
void target_if_vdev_start_link_handler(struct wlan_objmgr_vdev *vdev,
|
||||
uint32_t cfreq1, uint32_t cfreq2)
|
||||
uint32_t is_dfs)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
struct wlan_objmgr_pdev *pdev;
|
||||
struct psoc_mlme_wakelock *psoc_wakelock;
|
||||
struct wlan_lmac_if_mlme_rx_ops *rx_ops;
|
||||
struct wlan_channel *des_channel;
|
||||
uint32_t ch_freq;
|
||||
enum phy_ch_width ch_width;
|
||||
|
||||
psoc = wlan_vdev_get_psoc(vdev);
|
||||
pdev = wlan_vdev_get_pdev(vdev);
|
||||
des_channel = wlan_vdev_mlme_get_des_chan(vdev);
|
||||
ch_freq = des_channel->ch_freq;
|
||||
ch_width = des_channel->ch_width;
|
||||
|
||||
if (!pdev) {
|
||||
mlme_err("pdev is NULL");
|
||||
@@ -216,10 +222,9 @@ void target_if_vdev_start_link_handler(struct wlan_objmgr_vdev *vdev,
|
||||
|
||||
psoc_wakelock = rx_ops->psoc_get_wakelock_info(psoc);
|
||||
if (wlan_vdev_mlme_get_opmode(vdev) == QDF_SAP_MODE) {
|
||||
if ((wlan_reg_chan_has_dfs_attribute_for_freq(pdev,
|
||||
cfreq1)) ||
|
||||
(wlan_reg_chan_has_dfs_attribute_for_freq(pdev,
|
||||
cfreq2)))
|
||||
if (is_dfs ||
|
||||
(wlan_reg_get_5g_bonded_channel_state_for_freq(pdev,
|
||||
ch_freq, ch_width) == CHANNEL_STATE_DFS))
|
||||
target_if_vote_for_link_up(psoc, psoc_wakelock);
|
||||
else
|
||||
target_if_vote_for_link_down(psoc, psoc_wakelock);
|
||||
|
新しいイシューから参照
ユーザーをブロックする