mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move beacon_int in mt76_dev
Move beacon_int in mt76_dev data structure since it is used by all drivers Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
f06647efbd
commit
f43fccf099
+2
-2
@@ -149,7 +149,7 @@ static void mt76x02u_restart_pre_tbtt_timer(struct mt76x02_dev *dev)
|
||||
dev_dbg(dev->mt76.dev, "TSF: %llu us TBTT %u us\n", tsf, tbtt);
|
||||
|
||||
/* Convert beacon interval in TU (1024 usec) to nsec */
|
||||
time = ((1000000000ull * dev->beacon_int) >> 10);
|
||||
time = ((1000000000ull * dev->mt76.beacon_int) >> 10);
|
||||
|
||||
/* Adjust time to trigger hrtimer 8ms before TBTT */
|
||||
if (tbtt < PRE_TBTT_USEC)
|
||||
@@ -219,7 +219,7 @@ static void mt76x02u_beacon_enable(struct mt76x02_dev *dev, bool en)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (WARN_ON_ONCE(!dev->beacon_int))
|
||||
if (WARN_ON_ONCE(!dev->mt76.beacon_int))
|
||||
return;
|
||||
|
||||
if (en) {
|
||||
|
||||
Reference in New Issue
Block a user