Message ID | 20200209165902.44110-8-markus.theil@tu-ilmenau.de |
---|---|
State | New |
Headers | show |
Series | [1/8] iw: scan: parse measurement pilot element | expand |
diff --git a/scan.c b/scan.c index b3e7baa..e2a620a 100644 --- a/scan.c +++ b/scan.c @@ -586,10 +586,10 @@ static void print_rm_enabled_capabilities(const uint8_t type, uint8_t len, const uint8_t *data, const struct print_ies_data *ie_buffer) { - __u64 capa = data[0] | - data[1] << 8 | - data[2] << 16 | - data[3] << 24 | + __u64 capa = ((__u64) data[0]) | + ((__u64) data[1]) << 8 | + ((__u64) data[2]) << 16 | + ((__u64) data[3]) << 24 | ((__u64) data[4]) << 32; printf("\n");
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de> --- scan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)