From: Johannes Berg Date: Fri, 05 Jun 2009 08:24:05 +0200 Subject: [ath9k-devel] [PATCH 12/15] mac80211: make minstrel/pid RC use ieee80211_is_data(fc) In-Reply-To: <1244180502-4323-13-git-send-email-lrodriguez@atheros.com> References: <1244180502-4323-1-git-send-email-lrodriguez@atheros.com> <1244180502-4323-13-git-send-email-lrodriguez@atheros.com> Message-ID: <1244183046.22576.92.camel@johannes.local> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Fri, 2009-06-05 at 01:41 -0400, Luis R. Rodriguez wrote: > - u16 fc; > + __le16 fc; > > if (txrc->rts) > info->control.rates[0].count = > @@ -291,8 +291,7 @@ rate_control_pid_get_rate(void *priv, struct ieee80211_sta *sta, > > /* Send management frames and NO_ACK data using lowest rate. */ > fc = le16_to_cpu(hdr->frame_control); > - if (!sta || !spinfo || > - (fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA || > + if (!sta || !spinfo || !ieee80211_is_data(fc) || you might want to run sparse on this entire patchset. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 801 bytes Desc: This is a digitally signed message part Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090605/de004bd8/attachment.pgp