mirror of https://github.com/OpenIPC/firmware.git
fix bugs
parent
ce23f83d44
commit
27b19efe15
|
@ -1,84 +0,0 @@
|
||||||
--- a/src/compat/siphash/siphash.c 2022-10-13 13:32:56.761640510 +0300
|
|
||||||
+++ b/src/compat/siphash/siphash.c 2022-10-13 13:33:41.061624482 +0300
|
|
||||||
@@ -77,11 +77,11 @@
|
|
||||||
bytemask_from_count(left)));
|
|
||||||
#else
|
|
||||||
switch (left) {
|
|
||||||
- case 7: b |= ((u64)end[6]) << 48; fallthrough;
|
|
||||||
- case 6: b |= ((u64)end[5]) << 40; fallthrough;
|
|
||||||
- case 5: b |= ((u64)end[4]) << 32; fallthrough;
|
|
||||||
+ case 7: b |= ((u64)end[6]) << 48;
|
|
||||||
+ case 6: b |= ((u64)end[5]) << 40;
|
|
||||||
+ case 5: b |= ((u64)end[4]) << 32;
|
|
||||||
case 4: b |= le32_to_cpup(data); break;
|
|
||||||
- case 3: b |= ((u64)end[2]) << 16; fallthrough;
|
|
||||||
+ case 3: b |= ((u64)end[2]) << 16;
|
|
||||||
case 2: b |= le16_to_cpup(data); break;
|
|
||||||
case 1: b |= end[0];
|
|
||||||
}
|
|
||||||
@@ -109,11 +109,11 @@
|
|
||||||
bytemask_from_count(left)));
|
|
||||||
#else
|
|
||||||
switch (left) {
|
|
||||||
- case 7: b |= ((u64)end[6]) << 48; fallthrough;
|
|
||||||
- case 6: b |= ((u64)end[5]) << 40; fallthrough;
|
|
||||||
- case 5: b |= ((u64)end[4]) << 32; fallthrough;
|
|
||||||
+ case 7: b |= ((u64)end[6]) << 48;
|
|
||||||
+ case 6: b |= ((u64)end[5]) << 40;
|
|
||||||
+ case 5: b |= ((u64)end[4]) << 32;
|
|
||||||
case 4: b |= get_unaligned_le32(end); break;
|
|
||||||
- case 3: b |= ((u64)end[2]) << 16; fallthrough;
|
|
||||||
+ case 3: b |= ((u64)end[2]) << 16;
|
|
||||||
case 2: b |= get_unaligned_le16(end); break;
|
|
||||||
case 1: b |= end[0];
|
|
||||||
}
|
|
||||||
@@ -269,11 +269,11 @@
|
|
||||||
bytemask_from_count(left)));
|
|
||||||
#else
|
|
||||||
switch (left) {
|
|
||||||
- case 7: b |= ((u64)end[6]) << 48; fallthrough;
|
|
||||||
- case 6: b |= ((u64)end[5]) << 40; fallthrough;
|
|
||||||
- case 5: b |= ((u64)end[4]) << 32; fallthrough;
|
|
||||||
+ case 7: b |= ((u64)end[6]) << 48;
|
|
||||||
+ case 6: b |= ((u64)end[5]) << 40;
|
|
||||||
+ case 5: b |= ((u64)end[4]) << 32;
|
|
||||||
case 4: b |= le32_to_cpup(data); break;
|
|
||||||
- case 3: b |= ((u64)end[2]) << 16; fallthrough;
|
|
||||||
+ case 3: b |= ((u64)end[2]) << 16;
|
|
||||||
case 2: b |= le16_to_cpup(data); break;
|
|
||||||
case 1: b |= end[0];
|
|
||||||
}
|
|
||||||
@@ -301,11 +301,11 @@
|
|
||||||
bytemask_from_count(left)));
|
|
||||||
#else
|
|
||||||
switch (left) {
|
|
||||||
- case 7: b |= ((u64)end[6]) << 48; fallthrough;
|
|
||||||
- case 6: b |= ((u64)end[5]) << 40; fallthrough;
|
|
||||||
- case 5: b |= ((u64)end[4]) << 32; fallthrough;
|
|
||||||
+ case 7: b |= ((u64)end[6]) << 48;
|
|
||||||
+ case 6: b |= ((u64)end[5]) << 40;
|
|
||||||
+ case 5: b |= ((u64)end[4]) << 32;
|
|
||||||
case 4: b |= get_unaligned_le32(end); break;
|
|
||||||
- case 3: b |= ((u64)end[2]) << 16; fallthrough;
|
|
||||||
+ case 3: b |= ((u64)end[2]) << 16;
|
|
||||||
case 2: b |= get_unaligned_le16(end); break;
|
|
||||||
case 1: b |= end[0];
|
|
||||||
}
|
|
||||||
@@ -426,7 +426,7 @@
|
|
||||||
v0 ^= m;
|
|
||||||
}
|
|
||||||
switch (left) {
|
|
||||||
- case 3: b |= ((u32)end[2]) << 16; fallthrough;
|
|
||||||
+ case 3: b |= ((u32)end[2]) << 16;
|
|
||||||
case 2: b |= le16_to_cpup(data); break;
|
|
||||||
case 1: b |= end[0];
|
|
||||||
}
|
|
||||||
@@ -448,7 +448,7 @@
|
|
||||||
v0 ^= m;
|
|
||||||
}
|
|
||||||
switch (left) {
|
|
||||||
- case 3: b |= ((u32)end[2]) << 16; fallthrough;
|
|
||||||
+ case 3: b |= ((u32)end[2]) << 16;
|
|
||||||
case 2: b |= get_unaligned_le16(end); break;
|
|
||||||
case 1: b |= end[0];
|
|
||||||
}
|
|
|
@ -14,9 +14,9 @@ FPATH = gs
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(info $(FAMILY))
|
#$(info $(FAMILY))
|
||||||
$(info $(RELEASE))
|
#$(info $(RELEASE))
|
||||||
$(info $(FPATH))
|
#$(info $(FPATH))
|
||||||
|
|
||||||
|
|
||||||
define DATALINK_INSTALL_TARGET_CMDS
|
define DATALINK_INSTALL_TARGET_CMDS
|
||||||
|
|
|
@ -14,9 +14,9 @@ FPATH = gs
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(info $(FAMILY))
|
#$(info $(FAMILY))
|
||||||
$(info $(RELEASE))
|
#$(info $(RELEASE))
|
||||||
$(info $(FPATH))
|
#$(info $(FPATH))
|
||||||
|
|
||||||
WIFIBROADCAST_DEPENDENCIES += libpcap libsodium iw
|
WIFIBROADCAST_DEPENDENCIES += libpcap libsodium iw
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
1376334
|
Loading…
Reference in New Issue