hostapd: mpskd: fix checking addr in ssid_cache

Fix ucode syntax.

Signed-off-by: Marek Kwaczynski <marek@shasta.cloud>
This commit is contained in:
Marek Kwaczynski
2024-11-13 13:00:36 +01:00
committed by John Crispin
parent 376072ad97
commit 57735bcd18
2 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ function event_cb_6g(req) {
return 0;
let ssid_cache = cache[ssid];
if (ssid_cache && ssid_cache[addr])
if (ssid_cache && addr in ssid_cache)
return 0;
if (req.type == 'probe') {
@@ -57,7 +57,7 @@ function event_cb(req) {
return 0;
let ssid_cache = cache[ssid];
if (ssid_cache && ssid_cache[addr])
if (ssid_cache && addr in ssid_cache)
return 0;
printf(`reply to ${req.type} on ${req.data.ifname} from ${addr} without 6G RNR\n`);

View File

@@ -30,7 +30,7 @@ function event_cb_6g(req) {
return 0;
let ssid_cache = cache[ssid];
if (ssid_cache && ssid_cache[addr])
if (ssid_cache && addr in ssid_cache)
return 0;
if (req.type == 'probe') {
@@ -57,7 +57,7 @@ function event_cb(req) {
return 0;
let ssid_cache = cache[ssid];
if (ssid_cache && ssid_cache[addr])
if (ssid_cache && addr in ssid_cache)
return 0;
printf(`reply to ${req.type} on ${req.data.ifname} from ${addr} without 6G RNR\n`);