From patchwork Thu Dec 2 07:23:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Randolf X-Patchwork-Id: 373181 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 oB27Nq9L019244 for ; Thu, 2 Dec 2010 07:23:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757233Ab0LBHXv (ORCPT ); Thu, 2 Dec 2010 02:23:51 -0500 Received: from mail30t.wh2.ocn.ne.jp ([125.206.180.136]:2223 "HELO mail30t.wh2.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756133Ab0LBHXu (ORCPT ); Thu, 2 Dec 2010 02:23:50 -0500 Received: from vs3000.wh2.ocn.ne.jp (125.206.180.163) by mail30t.wh2.ocn.ne.jp (RS ver 1.0.95vs) with SMTP id 0-0535584628 for ; Thu, 2 Dec 2010 16:23:49 +0900 (JST) Received: (qmail 69525 invoked from network); 2 Dec 2010 07:23:47 -0000 Received: from unknown (HELO localhost6.localdomain6) (220.110.201.18) by with SMTP; 2 Dec 2010 07:23:47 -0000 Subject: [PATCH] cfg80211: Add documentation for antenna ops To: johannes@sipsolutions.net, linville@tuxdriver.com From: Bruno Randolf Cc: nbd@openwrt.org, mcgrof@gmail.com, linux-wireless@vger.kernel.org Date: Thu, 02 Dec 2010 16:23:12 +0900 Message-ID: <20101202072312.6635.67167.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 X-SF-Loop: 1 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.3 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Dec 2010 07:23:52 +0000 (UTC) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 49a7c53..6b2af7a 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -1154,6 +1154,13 @@ struct cfg80211_pmksa { * @mgmt_frame_register: Notify driver that a management frame type was * registered. Note that this callback may not sleep, and cannot run * concurrently with itself. + * + * @set_antenna: Set antenna configuration (tx_ant, rx_ant) on the device. + * Parameters are bitmaps of allowed antennas to use for TX/RX. Drivers may + * reject TX/RX mask combinations they cannot support by returning -EINVAL + * (also see nl80211.h @NL80211_ATTR_WIPHY_ANTENNA_TX). + * + * @get_antenna: Get current antenna configuration from device (tx_ant, rx_ant). */ struct cfg80211_ops { int (*suspend)(struct wiphy *wiphy);