From: Arend van Spriel Date: Thu, 29 Sep 2011 22:34:20 +0000 (-0700) Subject: staging: brcm80211: use fragment number provided in transmit frame X-Git-Tag: upstream/snapshot3+hdmi~8929^2^2~280 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f74156c9d6208ac5961fc08dc91b8b1732ce04b;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git staging: brcm80211: use fragment number provided in transmit frame In the transmit path the field seq_ctrl is filled in, but the fragment number was not properly determined. Reviewed-by: Roland Vossen Reviewed-by: Pieter-Paul Giesberts Signed-off-by: Franky Lin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/brcm80211/brcmsmac/main.c b/drivers/staging/brcm80211/brcmsmac/main.c index 074e16f..dfd67de 100644 --- a/drivers/staging/brcm80211/brcmsmac/main.c +++ b/drivers/staging/brcm80211/brcmsmac/main.c @@ -7100,7 +7100,7 @@ brcms_c_d11hdrs_mac80211(struct brcms_c_info *wlc, struct ieee80211_hw *hw, scb->seqnum[p->priority]++; /* extract fragment number from frame first */ - seq = le16_to_cpu(seq) & FRAGNUM_MASK; + seq = le16_to_cpu(h->seq_ctrl) & FRAGNUM_MASK; seq |= (scb->seqnum[p->priority] << SEQNUM_SHIFT); h->seq_ctrl = cpu_to_le16(seq);