From patchwork Fri Jun 21 06:50:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Pedersen X-Patchwork-Id: 2760461 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ADDCAC0AB1 for ; Fri, 21 Jun 2013 06:53:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFBE5201CA for ; Fri, 21 Jun 2013 06:53:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C766B201C7 for ; Fri, 21 Jun 2013 06:53:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751423Ab3FUGxq (ORCPT ); Fri, 21 Jun 2013 02:53:46 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:52988 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239Ab3FUGxp (ORCPT ); Fri, 21 Jun 2013 02:53:45 -0400 Received: by mail-pb0-f44.google.com with SMTP id uo1so7344179pbc.3 for ; Thu, 20 Jun 2013 23:53:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=XdL0qbnkFg1IsStuE6qXmPVr2mEAzjuh8kYTr298LAU=; b=TyEFk/6u7zpbtATUWRlZ/Oo9NR2wSQeTGc3pcf55awjh2S3vqZNr92qC31gkUyfZ9C MeaKDwSwm/XmAM7KrzwXfYCjFOZ+z7cwpwl6I/q1/k4fF1A2DvAJY/Sl0EdGqNnvWop9 fMsAkhrD8IK1hghnoBCqoOguZsAxga6zN/weTL2xPdOLv9AnqEUyMdus0o2S8o+5JiEV RMFuHpK99IvXy7OTC48beU2dtfiyQcvVk9ljUmig1//DSVyE6WsKuDqo7il79lQXo3j0 H8YBfTDJcYf5Etd73aLq9i4Rsox/hYFPkCuWK5ZXoIANOIjWtqi+fYRZO92P9IPgG/aD FtPA== X-Received: by 10.68.143.73 with SMTP id sc9mr10818992pbb.2.1371797624806; Thu, 20 Jun 2013 23:53:44 -0700 (PDT) Received: from cable.lan (70-35-43-50.static.wiline.com. [70.35.43.50]) by mx.google.com with ESMTPSA id ra4sm4387598pab.9.2013.06.20.23.53.42 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Jun 2013 23:53:43 -0700 (PDT) From: Thomas Pedersen To: Johannes Berg Cc: linux-wireless , open80211s , marco@cozybit.com, Bob Copeland , Thomas Pedersen Subject: [PATCH 1/2] mac80211: allow self-protected frame tx without sta Date: Thu, 20 Jun 2013 23:50:58 -0700 Message-Id: <1371797459-16585-1-git-send-email-thomas@cozybit.com> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQl8tPa5jImc92Wp7PhqmCExxs8TMsi+tI+NU21PajJC3H7GTcjPBfk4/eX8spsn/e71YQsZ Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Useful for userspace mesh to authenticate and peer without a station entry, since both steps may fail anyway. Signed-off-by: Thomas Pedersen --- net/mac80211/cfg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 18ba7ed..d6f9823 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -2821,7 +2821,8 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, !rcu_access_pointer(sdata->bss->beacon)) need_offchan = true; if (!ieee80211_is_action(mgmt->frame_control) || - mgmt->u.action.category == WLAN_CATEGORY_PUBLIC) + mgmt->u.action.category == WLAN_CATEGORY_PUBLIC || + mgmt->u.action.category == WLAN_CATEGORY_SELF_PROTECTED) break; rcu_read_lock(); sta = sta_info_get(sdata, mgmt->da);