mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 20:54:37 +04:00
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:
1 parent
5917907471
commit
28c6f5e6f7
1 file changed
+1
-1
@@ -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