]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
rt2800: set minimum MPDU and PSDU lengths to sane values
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 19 Dec 2016 10:52:49 +0000 (11:52 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 30 Dec 2016 11:34:17 +0000 (13:34 +0200)
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c

index 03b7f8eb62bd651f217448252d3cb94dedb61e6c..4c7ac4d78d1b62dbb522e785a03df194bddcb4c1 100644 (file)
@@ -4708,8 +4708,8 @@ static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev)
                rt2x00_set_field32(&reg, MAX_LEN_CFG_MAX_PSDU, 2);
        else
                rt2x00_set_field32(&reg, MAX_LEN_CFG_MAX_PSDU, 1);
-       rt2x00_set_field32(&reg, MAX_LEN_CFG_MIN_PSDU, 0);
-       rt2x00_set_field32(&reg, MAX_LEN_CFG_MIN_MPDU, 0);
+       rt2x00_set_field32(&reg, MAX_LEN_CFG_MIN_PSDU, 10);
+       rt2x00_set_field32(&reg, MAX_LEN_CFG_MIN_MPDU, 10);
        rt2800_register_write(rt2x00dev, MAX_LEN_CFG, reg);
 
        rt2800_register_read(rt2x00dev, LED_CFG, &reg);