Skip to content

Commit

Permalink
Workaround kernel BUG_ON panic caused by unexpected duplicate packets.
Browse files Browse the repository at this point in the history
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
  • Loading branch information
Zhu Yi authored and James Ketrenos committed Nov 7, 2005
1 parent 4f36f80 commit 87b016c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -7696,7 +7696,6 @@ static inline int is_network_packet(struct ipw_priv *priv,
static inline int is_duplicate_packet(struct ipw_priv *priv,
struct ieee80211_hdr_4addr *header)
{
u16 fc = le16_to_cpu(header->frame_ctl);
u16 sc = le16_to_cpu(header->seq_ctl);
u16 seq = WLAN_GET_SEQ_SEQ(sc);
u16 frag = WLAN_GET_SEQ_FRAG(sc);
Expand Down Expand Up @@ -7760,7 +7759,10 @@ static inline int is_duplicate_packet(struct ipw_priv *priv,
return 0;

drop:
BUG_ON(!(fc & IEEE80211_FCTL_RETRY));
/* Comment this line now since we observed the card receives
* duplicate packets but the FCTL_RETRY bit is not set in the
* IBSS mode with fragmentation enabled.
BUG_ON(!(le16_to_cpu(header->frame_ctl) & IEEE80211_FCTL_RETRY)); */
return 1;
}

Expand Down

0 comments on commit 87b016c

Please sign in to comment.