From owner-freebsd-current@FreeBSD.ORG Wed Aug 24 19:19:27 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33DB316A420 for ; Wed, 24 Aug 2005 19:19:27 +0000 (GMT) (envelope-from julian@elischer.org) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37A6943D46 for ; Wed, 24 Aug 2005 19:19:25 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id C3131223E8D; Wed, 24 Aug 2005 12:19:25 -0700 (PDT) Received: from [192.168.2.2] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id j7OJJO5F096673; Wed, 24 Aug 2005 12:19:25 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <430CC83C.5050906@elischer.org> Date: Wed, 24 Aug 2005 12:19:24 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050823 X-Accept-Language: en, hu MIME-Version: 1.0 To: Dorijan Jelincic References: <09950876.20050824112311@kset.org> In-Reply-To: <09950876.20050824112311@kset.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: wireless part: 2.3 gh band X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 19:19:27 -0000 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... It's always a question however, if you want to make it too easy for non HAMS to get on ham bands.. is there anything in this that might make people believe that it would be legal for them to use this without a licence? mMybe a documantation change that specifically mentions that you need a licence to use those channels. Julian (ex-VK6UI) > >