File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,10 @@ void ieee802154_configure_durations(struct wpan_phy *phy,
161
161
}
162
162
163
163
phy -> symbol_duration = duration ;
164
- phy -> lifs_period = (IEEE802154_LIFS_PERIOD * phy -> symbol_duration ) / NSEC_PER_SEC ;
165
- phy -> sifs_period = (IEEE802154_SIFS_PERIOD * phy -> symbol_duration ) / NSEC_PER_SEC ;
164
+ phy -> lifs_period =
165
+ (IEEE802154_LIFS_PERIOD * phy -> symbol_duration ) / NSEC_PER_USEC ;
166
+ phy -> sifs_period =
167
+ (IEEE802154_SIFS_PERIOD * phy -> symbol_duration ) / NSEC_PER_USEC ;
166
168
}
167
169
EXPORT_SYMBOL (ieee802154_configure_durations );
168
170
@@ -184,10 +186,10 @@ static void ieee802154_setup_wpan_phy_pib(struct wpan_phy *wpan_phy)
184
186
* Should be done when all drivers sets this value.
185
187
*/
186
188
187
- wpan_phy -> lifs_period =
188
- ( IEEE802154_LIFS_PERIOD * wpan_phy -> symbol_duration ) / 1000 ;
189
- wpan_phy -> sifs_period =
190
- ( IEEE802154_SIFS_PERIOD * wpan_phy -> symbol_duration ) / 1000 ;
189
+ wpan_phy -> lifs_period = ( IEEE802154_LIFS_PERIOD *
190
+ wpan_phy -> symbol_duration ) / NSEC_PER_USEC ;
191
+ wpan_phy -> sifs_period = ( IEEE802154_SIFS_PERIOD *
192
+ wpan_phy -> symbol_duration ) / NSEC_PER_USEC ;
191
193
}
192
194
193
195
int ieee802154_register_hw (struct ieee802154_hw * hw )
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ void ieee802154_xmit_sync_worker(struct work_struct *work)
34
34
if (res )
35
35
goto err_tx ;
36
36
37
- dev -> stats . tx_packets ++ ;
38
- dev -> stats . tx_bytes += skb -> len ;
37
+ DEV_STATS_INC ( dev , tx_packets ) ;
38
+ DEV_STATS_ADD ( dev , tx_bytes , skb -> len ) ;
39
39
40
40
ieee802154_xmit_complete (& local -> hw , skb , false);
41
41
@@ -90,8 +90,8 @@ ieee802154_tx(struct ieee802154_local *local, struct sk_buff *skb)
90
90
if (ret )
91
91
goto err_wake_netif_queue ;
92
92
93
- dev -> stats . tx_packets ++ ;
94
- dev -> stats . tx_bytes += len ;
93
+ DEV_STATS_INC ( dev , tx_packets ) ;
94
+ DEV_STATS_ADD ( dev , tx_bytes , len ) ;
95
95
} else {
96
96
local -> tx_skb = skb ;
97
97
queue_work (local -> workqueue , & local -> sync_tx_work );
You can’t perform that action at this time.
0 commit comments