Date: Mon, 29 Aug 2005 10:09:53 -0700 From: Sam Leffler <sam@errno.com> To: Dorijan Jelincic <dorijan@kset.org> Cc: freebsd-current@freebsd.org Subject: Re: wireless part: 2.3 gh band Message-ID: <43134161.70207@errno.com> In-Reply-To: <09950876.20050824112311@kset.org> References: <09950876.20050824112311@kset.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Dorijan Jelincic wrote: > Hello freebsd-current, > > I am using 2.3 gh band since it is legal radioamater band, and it > would be great if you could implement it in ieee80211.c > > ieee80211_mhz2ieee(u_int freq, u_int flags) > { > if (flags & IEEE80211_CHAN_2GHZ) { /* 2GHz band */ > if (freq == 2484) > return 14; > if (freq<=2402) > return (255 - (2402-freq)/5); /* 2.3GHz band */ > if (freq < 2484) > return (freq - 2407) / 5; > else > return 15 + ((freq - 2512) / 20);} > > ..... > > > ieee80211_ieee2mhz(u_int chan, u_int flags) > { > if (flags & IEEE80211_CHAN_2GHZ) { /* 2GHz band */ > if (chan == 14) > return 2484; > if (chan>236) > return 2402 - (255-chan)*5; /* 2.3GHz band */ > > if (chan < 14) > return 2407 + chan*5; > else > return 2512 + ((chan-15)*20);} > > > This way channel list is compatibile even with Mikrotik and StarOS... > > I don't see the use in this change; please explain why it's worth doing. In particular this can only be useful w/ some other changes and/or a new driver so please indicate what else you've got. Sam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43134161.70207>