AR5416 - tdma ??
Kang Yin Su
cantona at cantona.net
Wed Sep 7 10:06:05 UTC 2011
Try this.
Yin
On Wed, Sep 7, 2011 at 5:57 PM, Berislav Purgar <bpurgar at gmail.com> wrote:
>
>
> On Wed, Sep 7, 2011 at 11:05 AM, Kang Yin Su <cantona at cantona.net> 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 <cantona at cantona.net> 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 <adrian at freebsd.org> wrote:
>> >> On 7 September 2011 16:02, Kang Yin Su <cantona at cantona.net> 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
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tdma_more_slot2.patch
Type: application/octet-stream
Size: 1479 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-wireless/attachments/20110907/e9805ee9/tdma_more_slot2.obj
More information about the freebsd-wireless
mailing list