From patchwork Tue May 3 23:57:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Cardona X-Patchwork-Id: 752302 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p43NvhhJ031181 for ; Tue, 3 May 2011 23:57:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754802Ab1ECX5n (ORCPT ); Tue, 3 May 2011 19:57:43 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:59058 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754092Ab1ECX5m (ORCPT ); Tue, 3 May 2011 19:57:42 -0400 Received: by mail-pv0-f174.google.com with SMTP id 12so258431pvg.19 for ; Tue, 03 May 2011 16:57:41 -0700 (PDT) Received: by 10.68.71.193 with SMTP id x1mr569271pbu.429.1304467061779; Tue, 03 May 2011 16:57:41 -0700 (PDT) Received: from localhost.localdomain ([99.8.184.170]) by mx.google.com with ESMTPS id z3sm344013pbk.55.2011.05.03.16.57.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2011 16:57:41 -0700 (PDT) From: Javier Cardona To: "John W. Linville" Cc: Thomas Pedersen , Javier Cardona , devel@lists.open80211s.org, Johannes Berg , linux-wireless@vger.kernel.org, jlopex@gmail.com Subject: [PATCH 08/13] mac80211: Self-protected management frames are not robust Date: Tue, 3 May 2011 16:57:14 -0700 Message-Id: <1304467039-7730-9-git-send-email-javier@cozybit.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1304467039-7730-1-git-send-email-javier@cozybit.com> References: <1304467039-7730-1-git-send-email-javier@cozybit.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 03 May 2011 23:57:45 +0000 (UTC) From: Thomas Pedersen They may contain encrypted information elements (as AMPE frames do) but they are not encrypted. Signed-off-by: Thomas Pedersen Signed-off-by: Javier Cardona --- include/linux/ieee80211.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index ee1c96a..a26dcb8 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -1515,6 +1515,7 @@ static inline bool ieee80211_is_robust_mgmt_frame(struct ieee80211_hdr *hdr) category = ((u8 *) hdr) + 24; return *category != WLAN_CATEGORY_PUBLIC && *category != WLAN_CATEGORY_HT && + *category != WLAN_CATEGORY_SELF_PROTECTED && *category != WLAN_CATEGORY_VENDOR_SPECIFIC; }