Skip to content

Commit

Permalink
mt7603: remove some harmless WARN_ONs in rx path
Browse files Browse the repository at this point in the history
Discard affected packets instead. Should reduce the frequency of bogus
bug reports

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Dec 3, 2017
1 parent b4034cf commit 8e17d36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mt7603_mac.c
Expand Up @@ -326,7 +326,7 @@ mt7603_get_rate(struct mt7603_dev *dev, struct ieee80211_supported_band *sband,
int i;

if (cck) {
if (WARN_ON_ONCE(sband == &dev->mt76.sband_5g.sband))
if (sband == &dev->mt76.sband_5g.sband)
return 0;

idx &= ~BIT(2); /* short preamble */
Expand All @@ -339,7 +339,6 @@ mt7603_get_rate(struct mt7603_dev *dev, struct ieee80211_supported_band *sband,
return i;
}

WARN_ON_ONCE(1);
return 0;
}

Expand Down Expand Up @@ -422,7 +421,7 @@ mt7603_mac_fill_rx(struct mt7603_dev *dev, struct sk_buff *skb)
status->encoding = RX_ENC_VHT;
break;
default:
WARN_ON(1);
return -EINVAL;
}

if (rxdg0 & MT_RXV1_HT_SHORT_GI)
Expand Down

0 comments on commit 8e17d36

Please sign in to comment.