Return-path: Received: from rv-out-0506.google.com ([209.85.198.227]:3071 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754909AbYFENze (ORCPT ); Thu, 5 Jun 2008 09:55:34 -0400 Received: by rv-out-0506.google.com with SMTP id l9so728107rvb.1 for ; Thu, 05 Jun 2008 06:55:32 -0700 (PDT) Message-ID: (sfid-20080605_155538_212595_C7E294B2) Date: Thu, 5 Jun 2008 09:55:32 -0400 From: "Bob Copeland" To: "Harvey Harrison" Subject: Re: [RFC-PATCH] mac80211: add helpers for common frame_control testing Cc: "Johannes Berg" , "John Linville" , linux-wireless In-Reply-To: <1212633200.6340.52.camel@brick> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <1212633200.6340.52.camel@brick> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Jun 4, 2008 at 10:33 PM, Harvey Harrison wrote: > +static inline int ieee80211_has_a4(struct ieee80211_hdr *hdr) > +{ > + __le16 tmp = cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_TODS); > + return (hdr->frame_control & tmp) == tmp; > +} One should be FROMDS? -- Bob Copeland %% www.bobcopeland.com