Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
f4a9f5a0
Commit
f4a9f5a0
authored
6 years ago
by
Gunar Schorcht
Committed by
Schorcht
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cpu/esp8266: netstats removed from esp_wifi
parent
6037fa25
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/esp8266/esp-wifi/esp_wifi_netdev.c
+0
-15
0 additions, 15 deletions
cpu/esp8266/esp-wifi/esp_wifi_netdev.c
with
0 additions
and
15 deletions
cpu/esp8266/esp-wifi/esp_wifi_netdev.c
+
0
−
15
View file @
f4a9f5a0
...
@@ -320,10 +320,6 @@ static int _init(netdev_t *netdev)
...
@@ -320,10 +320,6 @@ static int _init(netdev_t *netdev)
{
{
ESP_WIFI_DEBUG
(
"%p"
,
netdev
);
ESP_WIFI_DEBUG
(
"%p"
,
netdev
);
#ifdef MODULE_NETSTATS_L2
memset
(
&
netdev
->
stats
,
0x00
,
sizeof
(
netstats_t
));
#endif
return
0
;
return
0
;
}
}
...
@@ -455,18 +451,12 @@ static int IRAM _send(netdev_t *netdev, const iolist_t *iolist)
...
@@ -455,18 +451,12 @@ static int IRAM _send(netdev_t *netdev, const iolist_t *iolist)
if
(
res
==
ERR_OK
)
{
if
(
res
==
ERR_OK
)
{
/* There was no ieee80211_output_pbuf error and no send timeout. */
/* There was no ieee80211_output_pbuf error and no send timeout. */
#ifdef MODULE_NETSTATS_L2
netdev
->
stats
.
tx_bytes
+=
iol_len
;
netdev
->
event_callback
(
netdev
,
NETDEV_EVENT_TX_COMPLETE
);
netdev
->
event_callback
(
netdev
,
NETDEV_EVENT_TX_COMPLETE
);
#endif
_in_send
=
false
;
_in_send
=
false
;
return
iol_len
;
return
iol_len
;
}
}
else
{
else
{
/* There was either a ieee80211_output_pbuf error or send timed out. */
/* There was either a ieee80211_output_pbuf error or send timed out. */
#ifdef MODULE_NETSTATS_L2
netdev
->
stats
.
tx_failed
++
;
#endif
_in_send
=
false
;
_in_send
=
false
;
return
-
EIO
;
return
-
EIO
;
}
}
...
@@ -513,11 +503,6 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
...
@@ -513,11 +503,6 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
#endif
/* MODULE_OD */
#endif
/* MODULE_OD */
#endif
/* ENABLE_DEBUG */
#endif
/* ENABLE_DEBUG */
#if MODULE_NETSTATS_L2
netdev
->
stats
.
rx_count
++
;
netdev
->
stats
.
rx_bytes
+=
size
;
#endif
return
size
;
return
size
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment