mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-23 07:00:07 +00:00
修改随机mac显示错误问题
Signed-off-by: shenqihang <shenqihang@huawei.com>
This commit is contained in:
parent
f9e95bc5c7
commit
9818c5ea90
@ -1948,7 +1948,7 @@ void StaStateMachine::InitRandomMacInfo(const WifiDeviceConfig &deviceConfig, co
|
||||
for (auto scanInfo : scanInfoList) {
|
||||
std::string deviceKeyMgmt;
|
||||
scanInfo.GetDeviceMgmt(deviceKeyMgmt);
|
||||
if ((deviceConfig.ssid == scanInfo.ssid) && (deviceKeyMgmt == deviceConfig.keyMgmt)) {
|
||||
if ((deviceConfig.ssid == scanInfo.ssid) && deviceKeyMgmt.find(deviceConfig.keyMgmt) != std::string::npos)) {
|
||||
randomMacInfo.peerBssid = scanInfo.bssid;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user