Added a do-nothing case to netdev_rx() for frames with zero payload data.

This commit is contained in:
mark 2000-05-11 16:41:13 +00:00
parent 627cfda659
commit 8ee4f39c55
1 changed files with 3 additions and 1 deletions

View File

@ -289,7 +289,9 @@ void p80211netdev_rx(wlandevice_t *wlandev, wlan_pb_t *pb)
dev->interrupt = 1;
if (dev->start) {
if ( p80211pb_p80211_to_ether(wlandev, wlandev->ethconv, pb) == 0 ) {
if ( pb->p80211payloadlen == 0 ) {
/* Do nothing, converting and passing up zero len frame is pointless */
} else if ( p80211pb_p80211_to_ether(wlandev, wlandev->ethconv, pb) == 0 ) {
/* Mark last reception */
dev->last_rx = jiffies;
/* take ownership of skb from pb */