wifi-scripts: fix extended-feature bit test

device_extended_features() used bitwise OR instead of AND, so every
extended-feature query returned true regardless of the driver bitmap:
ftm_responder and radar_background were always reported present.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2026-07-16 11:50:21 +02:00
parent 5917907471
commit 28c6f5e6f7
@@ -474,7 +474,7 @@ function device_htmode_append(config) {
}
function device_extended_features(data, flag) {
return !!(data[flag / 8] | (1 << (flag % 8)));
return !!(data[flag / 8] & (1 << (flag % 8)));
}
function device_capabilities(config) {