未验证 提交 a218b2fa 编写于 作者: O openharmony_ci 提交者: Gitee

!178 Bugfix for p2p connect fail at rk3568 @2022-11-30

Merge pull request !178 from yanxiaotao/master
......@@ -2243,7 +2243,10 @@ static int wpas_p2p_add_group_interface(struct wpa_supplicant *wpa_s,
wpa_printf(MSG_DEBUG, "P2P: Create a new interface %s for the group",
ifname);
wpa_s->p2p_group_idx++;
#ifdef CONFIG_OPEN_HARMONY_PATCH
const int MAX_GROUP_INDEX_NUM = 15;
wpa_s->p2p_group_idx = wpa_s->p2p_group_idx % MAX_GROUP_INDEX_NUM;
#endif
wpa_s->pending_interface_type = type;
if (wpa_drv_if_add(wpa_s, type, ifname, NULL, NULL, force_ifname,
wpa_s->pending_interface_addr, NULL) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册