From patchwork Wed Nov 24 05:34:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Randolf X-Patchwork-Id: 351671 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 oAO5YhTD013739 for ; Wed, 24 Nov 2010 05:34:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451Ab0KXFem (ORCPT ); Wed, 24 Nov 2010 00:34:42 -0500 Received: from mail30s.wh2.ocn.ne.jp ([125.206.180.198]:30439 "HELO mail30s.wh2.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751409Ab0KXFel (ORCPT ); Wed, 24 Nov 2010 00:34:41 -0500 Received: from vs3017.wh2.ocn.ne.jp (125.206.180.250) by mail30s.wh2.ocn.ne.jp (RS ver 1.0.95vs) with SMTP id 3-0553986879 for ; Wed, 24 Nov 2010 14:34:39 +0900 (JST) Received: (qmail 90119 invoked from network); 24 Nov 2010 05:34:39 -0000 Received: from unknown (HELO localhost6.localdomain6) (220.110.201.18) by with SMTP; 24 Nov 2010 05:34:39 -0000 Subject: [PATCH v2] cfg80211: Add documentation for antenna ops To: johannes@sipsolutions.net, linville@tuxdriver.com From: Bruno Randolf Cc: linux-wireless@vger.kernel.org Date: Wed, 24 Nov 2010 14:34:41 +0900 Message-ID: <20101124053441.25150.71136.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]); Wed, 24 Nov 2010 05:34:43 +0000 (UTC) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 5b0fff2..08e4db6 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -1745,6 +1745,13 @@ enum ieee80211_ampdu_mlme_action { * completion of the channel switch. * * @napi_poll: Poll Rx queue for incoming data frames. + * + * @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 ieee80211_ops { int (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb);