File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ void ieee802154_xmit_worker(struct work_struct *work)
34
34
if (res )
35
35
goto err_tx ;
36
36
37
- ieee802154_xmit_complete (& local -> hw , skb , false);
38
-
39
37
dev -> stats .tx_packets ++ ;
40
38
dev -> stats .tx_bytes += skb -> len ;
41
39
40
+ ieee802154_xmit_complete (& local -> hw , skb , false);
41
+
42
42
return ;
43
43
44
44
err_tx :
@@ -78,14 +78,16 @@ ieee802154_tx(struct ieee802154_local *local, struct sk_buff *skb)
78
78
79
79
/* async is priority, otherwise sync is fallback */
80
80
if (local -> ops -> xmit_async ) {
81
+ unsigned int len = skb -> len ;
82
+
81
83
ret = drv_xmit_async (local , skb );
82
84
if (ret ) {
83
85
ieee802154_wake_queue (& local -> hw );
84
86
goto err_tx ;
85
87
}
86
88
87
89
dev -> stats .tx_packets ++ ;
88
- dev -> stats .tx_bytes += skb -> len ;
90
+ dev -> stats .tx_bytes += len ;
89
91
} else {
90
92
local -> tx_skb = skb ;
91
93
queue_work (local -> workqueue , & local -> tx_work );
You can’t perform that action at this time.
0 commit comments