Hi, All
 
Anybody knows why ht40 mode explicitly switch off for some ralink wifi?
rt2800lib.c in function rt2800_config_channel():
 
    if (rt2x00_rf(rt2x00dev, RF3290) ||
        rt2x00_rf(rt2x00dev, RF3322) ||
        rt2x00_rf(rt2x00dev, RF5350) ||
        rt2x00_rf(rt2x00dev, RF5360) ||
        rt2x00_rf(rt2x00dev, RF5370) ||
        rt2x00_rf(rt2x00dev, RF5372) ||
        rt2x00_rf(rt2x00dev, RF5390) ||
        rt2x00_rf(rt2x00dev, RF5392)) {
        rt2800_rfcsr_read(rt2x00dev, 30, &rfcsr);
        rt2x00_set_field8(&rfcsr, RFCSR30_TX_H20M, 0);<------------
        rt2x00_set_field8(&rfcsr, RFCSR30_RX_H20M, 0);<------------
        rt2800_rfcsr_write(rt2x00dev, 30, rfcsr);

        rt2800_rfcsr_read(rt2x00dev, 3, &rfcsr);
        rt2x00_set_field8(&rfcsr, RFCSR30_RF_CALIBRATION, 1);
        rt2800_rfcsr_write(rt2x00dev, 3, rfcsr);
    }
I've done correct{?) configs and ht40 works for my rt3290, rt3352 & rt5350.
Or it's simple mistake and instead of 0 it must be conf_is_ht40(conf).
 
---
serge
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to