问题原因:
经常因为我们碰到在添加P2P群主成员的时候因为全扫描一次导致过重
修改策略:
可以针对对于的freq进行扫描,避免全扫描
代码路径:
这个文件中主要守护wpa_supplicant的hidl接口,P2P相关方法都会调用到此文件
int joinGroup(
struct wpa_supplicant* wpa_s,
uint8_t *group_owner_bssid,
const std::vector<uint8_t>& ssid,
const std::string& passphrase,
int freq)
{
int ret = 0;
int he = wpa_s->conf->p2p_go_he;
int vht = wpa_s->conf->p2p_go_vht;
int ht40 = wpa_s->conf->p2p_go_ht40 || vht;
int edmg = wpa_s->conf->p2p_go