提交 07151d5a 编写于 作者: L lijian

Bugfix for P2P 160M

Signed-off-by: Nlijian <lijian39@huawei.com>
上级 83380db8
......@@ -911,6 +911,11 @@ static int wiphy_info_handler(struct nl_msg *msg, void *arg)
capa->flags |= WPA_DRIVER_FLAGS_BSS_SELECTION;
}
if (tb[NL80211_ATTR_DFS_OFFLOAD_SUPPORT]) {
wpa_printf(MSG_DEBUG, "nl80211: Using driver-based dfs offload");
capa->flags |= WPA_DRIVER_FLAGS_DFS_OFFLOAD;
}
wiphy_info_max_roc(capa,
tb[NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION]);
......
......@@ -3058,7 +3058,7 @@ enum nl80211_attrs {
NL80211_ATTR_DISABLE_HE,
/* add attributes here, update the policy in nl80211.c */
NL80211_ATTR_DFS_OFFLOAD_SUPPORT = 351,
__NL80211_ATTR_AFTER_LAST,
NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
......
......@@ -6948,13 +6948,15 @@ static int p2p_ctrl_group_add(struct wpa_supplicant *wpa_s, char *cmd)
#endif /* CONFIG_ACS */
#ifdef CONFIG_OPEN_HARMONY_PATCH
#ifdef CONFIG_P2P_160M
if (freq & P2P_160M_MASK) {
freq = freq - P2P_160M_MASK;
#ifdef CONFIG_P2P_160M
chwidth = 160;
} else {
chwidth = 80;
}
#endif
#endif
}
max_oper_chwidth = parse_freq(chwidth, freq2);
wpa_printf(MSG_DEBUG, "wpa_supplicant::p2p_ctrl_group_add freq = %d, max_oper_chwidth = %d, group_id = %d",
freq, max_oper_chwidth, group_id);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册