Sets the BCDC priority to constant 0
authorJames Hughes <james.hughes@raspberrypi.org>
Fri, 21 Jul 2017 08:55:12 +0000 (09:55 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 24 Jul 2017 10:23:06 +0000 (11:23 +0100)
This is to workaround for a possible issue in the
wireless chip firmware where some packets with
higher priorities seem to go missing.

See https://github.com/raspberrypi/linux/issues/1342 for
details.

drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c

index 038a960c5104fe19dd66838e0a555d29d5f795d0..04ebb330b3e83650823a020bb88faca69b326c8b 100644 (file)
@@ -266,7 +266,7 @@ brcmf_proto_bcdc_hdrpush(struct brcmf_pub *drvr, int ifidx, u8 offset,
        if (pktbuf->ip_summed == CHECKSUM_PARTIAL)
                h->flags |= BCDC_FLAG_SUM_NEEDED;
 
-       h->priority = (pktbuf->priority & BCDC_PRIORITY_MASK);
+       h->priority = 0;
        h->flags2 = 0;
        h->data_offset = offset;
        BCDC_SET_IF_IDX(h, ifidx);