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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user