From owner-freebsd-wireless@FreeBSD.ORG Wed Sep 7 09:57:37 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83D161065686 for ; Wed, 7 Sep 2011 09:57:37 +0000 (UTC) (envelope-from bpurgar@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 56BE28FC0C for ; Wed, 7 Sep 2011 09:57:37 +0000 (UTC) Received: by pzk33 with SMTP id 33so18003072pzk.18 for ; Wed, 07 Sep 2011 02:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OQRNF4lZi5tJbUC4qsSobgzi/Kwf2pt++38heD5pzmo=; b=ekYOsDF6CyMMiZbzHpgLpLUXzK26J4ddpelewDIFPyIPRXbq2EV2jCV6uxvaIBIXp9 fa6kaa9AIwOdeiNvQCJJioLy3I+xlAnnxaRfRvEKqMt5/cXHpJ1wP2RSCR/PGTPdadjR vBN+XnE8mav0TfxbqJbd3VNfgeZY3DnEtaXJs= MIME-Version: 1.0 Received: by 10.68.4.105 with SMTP id j9mr10538064pbj.72.1315389456852; Wed, 07 Sep 2011 02:57:36 -0700 (PDT) Received: by 10.142.246.15 with HTTP; Wed, 7 Sep 2011 02:57:36 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Sep 2011 11:57:36 +0200 Message-ID: From: Berislav Purgar To: Kang Yin Su Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: AR5416 - tdma ?? X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 09:57:37 -0000 On Wed, Sep 7, 2011 at 11:05 AM, Kang Yin Su wrote: > Attached is the patch which I modified for more than 2 stations. -Yin > > On Wed, Sep 7, 2011 at 4:52 PM, Kang Yin Su wrote: > > Right. I didn't change these, 8 slots is enough for my setup and the > > default slot cnt can override by ifconfig. > > > > -Yin > > > > On Wed, Sep 7, 2011 at 4:42 PM, Adrian Chadd wrote: > >> On 7 September 2011 16:02, Kang Yin Su wrote: > >>> Sure, For testing >2 slot, I just comment out the line from > ieee80211_tdma.c > >>> > >>> 110://CTASSERT(TDMA_MAXSLOTS == 2); > >> > >> And what about these: > >> > >> uint8_t tdma_inuse[1]; /* mask of slots in use */ > >> uint8_t tdma_active[1]; /* mask of active slots */ > >> > >> And: > >> > >> ieee80211_tdma.c:#define TDMA_SLOTCNT_DEFAULT 2 > >> /* 2x (pt-to-pt) */ > >> > >> Did you update these? > >> > >> Ie, the above bitmaps are only 8 slots wide. The above define is used > >> for initialising tdma_slotcnt so you may have overridden it somehow > >> using ifconfig. > >> > >> Thanks, > >> > >> > >> > >> Adrian > >> > > > Hi .. after applaying this patch i got error when compiling kernel : /usr/src/sys/net80211/ieee80211_tdma.c: In function 'tdma_update': /usr/src/sys/net80211/ieee80211_tdma.c:517: error: invalid storage class for function 'tdma_process_params' cc1: warnings being treated as errors /usr/src/sys/net80211/ieee80211_tdma.c:517: warning: no previous prototype for 'tdma_process_params' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:624: warning: no previous prototype for 'ieee80211_tdma_getslot' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:637: warning: no previous prototype for 'ieee80211_parse_tdma' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:668: warning: no previous prototype for 'ieee80211_add_tdma' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:709: warning: no previous prototype for 'ieee80211_tdma_update_beacon' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:742: error: invalid storage class for function 'tdma_ioctl_get80211' /usr/src/sys/net80211/ieee80211_tdma.c:742: warning: no previous prototype for 'tdma_ioctl_get80211' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:766: error: initializer element is not computable at load time /usr/src/sys/net80211/ieee80211_tdma.c:770: error: invalid storage class for function 'tdma_ioctl_set80211' /usr/src/sys/net80211/ieee80211_tdma.c:770: warning: no previous prototype for 'tdma_ioctl_set80211' [-Wmissing-prototypes] /usr/src/sys/net80211/ieee80211_tdma.c:823: error: initializer element is not computable at load time /usr/src/sys/net80211/ieee80211_tdma.c:823: error: expected declaration or statement at end of input *** Error code 1 Beri