Return-path: Received: from mail-iw0-f174.google.com ([209.85.214.174]:53996 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754198Ab0JGSMM (ORCPT ); Thu, 7 Oct 2010 14:12:12 -0400 Received: by iwn9 with SMTP id 9so129934iwn.19 for ; Thu, 07 Oct 2010 11:12:12 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4CAD9368.70608@gmx.com> References: <4CAD9368.70608@gmx.com> From: "Luis R. Rodriguez" Date: Thu, 7 Oct 2010 11:11:51 -0700 Message-ID: Subject: Re: Vendor specific data within a beacon frame To: Bjoern Czybik Cc: linux-wireless@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Oct 7, 2010 at 2:31 AM, Bjoern Czybik wrote: > Hi all, > > I am a student from Germany and a newbie to Linux device driver programming > and the wireless drivers. > We are using the ath5k device driver and hostapd. > > In our project we are looking to send some specific data within each beacon > (should be set from the hostapd). > In which struct can I set the vendor specific data in a beacon frame? This can be done from userspace. This is from nl80211.h: * @NL80211_CMD_SET_MGMT_EXTRA_IE: Set extra IEs for management frames. The * interface is identified with %NL80211_ATTR_IFINDEX and the management * frame subtype with %NL80211_ATTR_MGMT_SUBTYPE. The extra IE data to be * added to the end of the specified management frame is specified with * %NL80211_ATTR_IE. If the command succeeds, the requested data will be * added to all specified management frames generated by * kernel/firmware/driver. * Note: This command has been removed and it is only reserved at this * point to avoid re-using existing command number. The functionality this * command was planned for has been provided with cleaner design with the * option to specify additional IEs in NL80211_CMD_TRIGGER_SCAN, * NL80211_CMD_AUTHENTICATE, NL80211_CMD_ASSOCIATE, * NL80211_CMD_DEAUTHENTICATE, and NL80211_CMD_DISASSOCIATE. Luis