From: Oleksij Rempel Date: Sat, 18 Jan 2014 00:30:36 +0100 Subject: [ath9k-devel] [PATCH v3 1/5] ath: add common function ath_is_mybeacon In-Reply-To: <1390001249-19784-1-git-send-email-linux@rempel-privat.de> References: <1389802038-6688-2-git-send-email-linux@rempel-privat.de> <1390001249-19784-1-git-send-email-linux@rempel-privat.de> Message-ID: <52D9BD1C.5070405@rempel-privat.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Am 18.01.2014 00:27, schrieb Oleksij Rempel: > this function is used by most ath driver, so it can be moved here. > > Signed-off-by: Oleksij Rempel > --- > drivers/net/wireless/ath/ath.h | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h > index e0ba7cd..ab6a0c8 100644 > --- a/drivers/net/wireless/ath/ath.h > +++ b/drivers/net/wireless/ath/ath.h > @@ -17,6 +17,7 @@ > #ifndef ATH_H > #define ATH_H > > +#include > #include > #include > #include > @@ -162,10 +163,17 @@ struct ath_common { > bool bt_ant_diversity; > }; > > +static inline bool ath_is_mybeacon(struct ath_common *common, > + struct ieee80211_hdr *hdr) > +{ > + return ieee80211_is_beacon(hdr->frame_control) && > + !is_zero_ether_addr(common->curbssid) && > + ether_addr_equal_64bits(hdr->addr3, common->curbssid); > +} > + > struct sk_buff *ath_rxbuf_alloc(struct ath_common *common, > u32 len, If there is no more comments, i'll resend tomorrow this patch set to Linville. -- Regards, Oleksij -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 295 bytes Desc: OpenPGP digital signature Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20140118/51402c7f/attachment.pgp