修改随机mac显示错误问题

Signed-off-by: shenqihang <shenqihang@huawei.com>
This commit is contained in:
shenqihang 2024-11-07 02:58:05 +00:00 committed by Gitee
parent f9e95bc5c7
commit 9818c5ea90
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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;
}