Message ID | 1548344649-10404-6-git-send-email-sgruszka@redhat.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Kalle Valo |
Headers | show |
Series | mt76x02: Beacon support for USB | expand |
> Initialize beaconing also on mt76x2u. > > Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> > --- > drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c b/drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c > index 0be3784f44fb..3737e9fa8295 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c > +++ b/drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c > @@ -207,11 +207,7 @@ int mt76x2u_init_hardware(struct mt76x02_dev *dev) > mt76x02_mac_shared_key_setup(dev, i, k, NULL); > } > > - mt76_clear(dev, MT_BEACON_TIME_CFG, > - MT_BEACON_TIME_CFG_TIMER_EN | > - MT_BEACON_TIME_CFG_SYNC_MODE | > - MT_BEACON_TIME_CFG_TBTT_EN | > - MT_BEACON_TIME_CFG_BEACON_TX); > + mt76x02_init_beacon_config(dev); > > mt76_rmw(dev, MT_US_CYC_CFG, MT_US_CYC_CNT, 0x1e); > mt76_wr(dev, MT_TXOP_CTRL_CFG, 0x583f); > -- > 1.9.3 > I think this can be squashed with 4/7
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c b/drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c index 0be3784f44fb..3737e9fa8295 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c @@ -207,11 +207,7 @@ int mt76x2u_init_hardware(struct mt76x02_dev *dev) mt76x02_mac_shared_key_setup(dev, i, k, NULL); } - mt76_clear(dev, MT_BEACON_TIME_CFG, - MT_BEACON_TIME_CFG_TIMER_EN | - MT_BEACON_TIME_CFG_SYNC_MODE | - MT_BEACON_TIME_CFG_TBTT_EN | - MT_BEACON_TIME_CFG_BEACON_TX); + mt76x02_init_beacon_config(dev); mt76_rmw(dev, MT_US_CYC_CFG, MT_US_CYC_CNT, 0x1e); mt76_wr(dev, MT_TXOP_CTRL_CFG, 0x583f);
Initialize beaconing also on mt76x2u. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> --- drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)