From 238171ddff98b469d838eaa6ccb13064af3915fa Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Tue, 12 Feb 2008 20:12:45 +0100 Subject: [PATCH] --- yaml --- r: 89904 b: refs/heads/master c: d0f5afbe6de6b8c06f94a8a0b370252e3863afe7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/net/mac80211.h | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index e6d79ac75c00..ddf819e81881 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3330d7be7008fa8e213648750fc13613eecc54bb +refs/heads/master: d0f5afbe6de6b8c06f94a8a0b370252e3863afe7 diff --git a/trunk/include/net/mac80211.h b/trunk/include/net/mac80211.h index 5ecf3cc8d977..027d51f876ee 100644 --- a/trunk/include/net/mac80211.h +++ b/trunk/include/net/mac80211.h @@ -793,8 +793,18 @@ static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, u8 *addr) * parameter to see whether multicast frames should be accepted * or dropped. * - * All unsupported flags in @total_flags must be cleared, i.e. you - * should clear all bits except those you honoured. + * All unsupported flags in @total_flags must be cleared. + * Hardware does not support a flag if it is incapable of _passing_ + * the frame to the stack. Otherwise the driver must ignore + * the flag, but not clear it. + * You must _only_ clear the flag (announce no support for the + * flag to mac80211) if you are not able to pass the packet type + * to the stack (so the hardware always filters it). + * So for example, you should clear @FIF_CONTROL, if your hardware + * always filters control frames. If your hardware always passes + * control frames to the kernel and is incapable of filtering them, + * you do _not_ clear the @FIF_CONTROL flag. + * This rule applies to all other FIF flags as well. */ /**