Go Back   Wireless and Wifi Forums > News > Newsgroups > alt.internet.wireless
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2006, 01:32 PM
sid.epou@googlemail.com
Guest
 
Posts: n/a
Default USB WiFi + Linux, have you tried it?

Hi everybody,

I am planning to build a small WiFi part of my LAN.
There is an old desktop PC running SuSE, acting as a router, and it is
the one I would like to connect the USB WiFi NIC to.

I need a few questions answered before buing any NIC:
1. Is it possible to implement NAT on wireless card? So that it would
play as AP?
2. What kind of NIC would you recommend? The main requirement is that
it should work under Linux. I have heard about prism 2.5, and atheros
chipsets, but as I walk to a computer shop and ask about any NIC on
such-and-such chipset, they think for a few seconds ("what is chipset?
:)") and say "sorry, no".
3. Would it be better to buy PCI NIC than USB dongle?

Just give me names/links, whatever, please :)
I'd really appreciate it.

Regards,
Sid


Reply With Quote
  #2 (permalink)  
Old 08-02-2006, 03:37 PM
Timothy Murphy
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

sid.epou@googlemail.com wrote:

> I need a few questions answered before buing any NIC:
> 1. Is it possible to implement NAT on wireless card? So that it would
> play as AP?


Not sure what this means.
I run NAT on the computer to which a USB WiFi dongle is attached.

> 2. What kind of NIC would you recommend? The main requirement is that
> it should work under Linux. I have heard about prism 2.5, and atheros
> chipsets, but as I walk to a computer shop and ask about any NIC on
> such-and-such chipset, they think for a few seconds ("what is chipset?
> :)") and say "sorry, no".


I have an Agere/Lucent USB WiFi (11b) dongle
which works fine,
though I had to get the SVN version of orinoco_cs and compile it
(very easy).

> 3. Would it be better to buy PCI NIC than USB dongle?


I also have an Agere/Lucent PCI card
(it is actually a PCMCIA card in a PCI adapter)
and this works fine with the standard orinoco_cs kernel driver.
This is also an 11b device.


--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

Reply With Quote
  #3 (permalink)  
Old 08-02-2006, 05:17 PM
Unruh
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

sid.epou@googlemail.com writes:

>Hi everybody,


>I am planning to build a small WiFi part of my LAN.
>There is an old desktop PC running SuSE, acting as a router, and it is
>the one I would like to connect the USB WiFi NIC to.


>I need a few questions answered before buing any NIC:
>1. Is it possible to implement NAT on wireless card? So that it would
>play as AP?


NAT has nothing to do with the wireless card. It is a function of the
router. The wireless card simply provides a connection between computers or
between a computer and a router.

>2. What kind of NIC would you recommend? The main requirement is that
>it should work under Linux. I have heard about prism 2.5, and atheros
>chipsets, but as I walk to a computer shop and ask about any NIC on
>such-and-such chipset, they think for a few seconds ("what is chipset?
>:)") and say "sorry, no".



>3. Would it be better to buy PCI NIC than USB dongle?


>Just give me names/links, whatever, please :)
>I'd really appreciate it.


>Regards,
>Sid



Reply With Quote
  #4 (permalink)  
Old 08-02-2006, 05:25 PM
sid.epou@googlemail.com
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

Unruh wrote:

> NAT has nothing to do with the wireless card. It is a function of the
> router. The wireless card simply provides a connection between computers or
> between a computer and a router.


Yes, I am quite familiar with what NAT is, but I have heard (still
can't believe it) that it is impossible to implement WiFi network with
a router comprising of desktop PC + WiFi card.

Regards,
Sid


Reply With Quote
  #5 (permalink)  
Old 08-02-2006, 05:51 PM
Allen Kistler
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

sid.epou@googlemail.com wrote:
> Unruh wrote:
>
>
>>NAT has nothing to do with the wireless card. It is a function of the
>>router. The wireless card simply provides a connection between computers or
>>between a computer and a router.

>
>
> Yes, I am quite familiar with what NAT is, but I have heard (still
> can't believe it) that it is impossible to implement WiFi network with
> a router comprising of desktop PC + WiFi card.


It's possible to combine WiFi and NAT, but you could run into problems
if your WiFi clients get DHCP addresses and you stick the DHCP server
behind the NAT. That's a problem that's independent of wireless. You'd
have that problem if you tried to do it with a wired network, too.

There are solutions, but think about whether you want the problem in the
first place.

Reply With Quote
  #6 (permalink)  
Old 08-02-2006, 06:55 PM
Unruh
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

sid.epou@googlemail.com writes:

>Unruh wrote:


>> NAT has nothing to do with the wireless card. It is a function of the
>> router. The wireless card simply provides a connection between computers or
>> between a computer and a router.


>Yes, I am quite familiar with what NAT is, but I have heard (still
>can't believe it) that it is impossible to implement WiFi network with
>a router comprising of desktop PC + WiFi card.


The problem will be whether your wireless card can act as an AP (one of the
modes -- where your wireless card will respond to attempts by another card
to connect to it).

>Regards,
>Sid



Reply With Quote
  #7 (permalink)  
Old 08-02-2006, 09:36 PM
dold@XReXXUSBXW.usenet.us.com
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

In alt.internet.wireless sid.epou@googlemail.com wrote:
> I am planning to build a small WiFi part of my LAN.
> There is an old desktop PC running SuSE, acting as a router, and it is
> the one I would like to connect the USB WiFi NIC to.


> I need a few questions answered before buing any NIC:
> 1. Is it possible to implement NAT on wireless card? So that it would
> play as AP?


The SuSE desktop is already a router, and you want to add a WiFi device to
act as an AP.

ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/FAQ
..Q: Can I use my 802.11b card as an AP under Linux?
..
.. Yes, and in the true free software fashion, there are several
.. ways:
..
.. a) linux-wlan-ng supports AP operation by using special tertiary
.. firmware on prism devices. This firmware is not generally
.. available, however. Contact Intersil for licensing terms.
..
.. b) The Prism2 HostAP driver uses the special HostAP mode of the
.. prism chipsets. http://people.ssh.com/jkm/Prism2/


A typical WiFi device in this application might also connect to other WiFi
(like your laptop) in Adhoc mode.

> 2. What kind of NIC would you recommend? The main requirement is that

....
> such-and-such chipset, they think for a few seconds ("what is chipset?


Retailers don't want to know about chipsets any more than they want to know
about Linux. Pick a vendor, and cruise their pages, looking for Linux
drivers. The above wlan page is a link from DLink-DWL-122 pages.

> :)") and say "sorry, no".
> 3. Would it be better to buy PCI NIC than USB dongle?


That would eliminate another layer of drivers.

--
---
Clarence A Dold - Hidden Valley Lake, CA, USA GPS: 38.8,-122.5

Reply With Quote
  #8 (permalink)  
Old 08-03-2006, 06:00 AM
bgeer
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

sid.epou@googlemail.com writes:

>1. Is it possible to implement NAT on wireless card? So that it would
>play as AP?


Yes, run the wireless device in Master mode. Then treat the wireless
network device as if it was Ethernet, as far as routing goes.

>2. What kind of NIC would you recommend? The main requirement is that
>it should work under Linux. I have heard about prism 2.5, and atheros
>chipsets, but as I walk to a computer shop and ask about any NIC on
>such-and-such chipset, they think for a few seconds ("what is chipset?
>:)") and say "sorry, no".


Google is your friend, regarding choice of device.

I set up a dlink 122 usb device in both master & managed mode;
however, it is 802.11b (10mbs). I haven't used it for awhile.

I have a NetGear wg311 pci card that works fine using madwifi driver.
I have had to change my startup script a couple of times as the
madwifi driver evolves, which is a bit annoying, as the required
changes weren't very obvious.

>3. Would it be better to buy PCI NIC than USB dongle?


A PCI with detachable antenna might work better for an AP if distance
is an issue.

>Just give me names/links, whatever, please :)


One place to start is

http://www.hpl.hp.com/personal/Jean_...nux/Tools.html

Another is [be sure to click on "compatibility"]

http://madwifi.org/

Another is http://www.linux-wlan.org [be sure to click on "compatibility"]

Good luck, Bob
--
<> Robert Geer & Donna Tomky | |||| We sure |||| <>
<> bgeer@xmission.com | == == find it == == <>
<> dtomky@xmission.com | == == enchanting == == <>
<> Albuquerque, NM USA | |||| here! |||| <>

Reply With Quote
  #9 (permalink)  
Old 08-03-2006, 11:23 PM
dold@XReXXUSBXW.usenet.us.com
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

In alt.internet.wireless bgeer <bgeer@xmission.com> wrote:
> I set up a dlink 122 usb device in both master & managed mode;
> however, it is 802.11b (10mbs). I haven't used it for awhile.


DLink DWL-122 is the device that I would like to use.

> http://www.hpl.hp.com/personal/Jean_...nux/Tools.html


I made many circular trips around the web, and found that
http://prism2.unixguru.raleigh.nc.us had the rpm for several kernels, but
not mine.

I don't understand why ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/ doesn't
have binaries available. They point to Jean's page as an "excellent HOWTO"
but it seems very old, and doesn't have my binaries.

One would think that a major hardware vendor would at least have links to
binaries, but DLink points you to the source directory at linux-wlan.org
with no further instructions.

--
---
Clarence A Dold - Hidden Valley Lake, CA, USA GPS: 38.8,-122.5

Reply With Quote
  #10 (permalink)  
Old 08-04-2006, 02:17 AM
atec77
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

dold@XReXXUSBXW.usenet.us.com wrote:
> In alt.internet.wireless bgeer <bgeer@xmission.com> wrote:
>> I set up a dlink 122 usb device in both master & managed mode;
>> however, it is 802.11b (10mbs). I haven't used it for awhile.

>
> DLink DWL-122 is the device that I would like to use.
>
>> http://www.hpl.hp.com/personal/Jean_...nux/Tools.html

>
> I made many circular trips around the web, and found that
> http://prism2.unixguru.raleigh.nc.us had the rpm for several kernels, but
> not mine.
>
> I don't understand why ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/ doesn't
> have binaries available. They point to Jean's page as an "excellent HOWTO"
> but it seems very old, and doesn't have my binaries.
>
> One would think that a major hardware vendor would at least have links to
> binaries, but DLink points you to the source directory at linux-wlan.org
> with no further instructions.
>

Get your self a cheep external wireless device and have it easy..

Reply With Quote
  #11 (permalink)  
Old 08-04-2006, 02:37 AM
Nietzsche
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

sid.epou@googlemail.com wrote:
> Hi everybody,
>
> I am planning to build a small WiFi part of my LAN.
> There is an old desktop PC running SuSE, acting as a router, and it is
> the one I would like to connect the USB WiFi NIC to.
>
> I need a few questions answered before buing any NIC:
> 1. Is it possible to implement NAT on wireless card? So that it would
> play as AP?
> 2. What kind of NIC would you recommend? The main requirement is that
> it should work under Linux. I have heard about prism 2.5, and atheros
> chipsets, but as I walk to a computer shop and ask about any NIC on
> such-and-such chipset, they think for a few seconds ("what is chipset?
> :)") and say "sorry, no".
> 3. Would it be better to buy PCI NIC than USB dongle?
>
> Just give me names/links, whatever, please :)
> I'd really appreciate it.
>


The prism2/2.5 chipset supports master mode so that's the one you'll
want to run DHCP on. After installing do a 'iwconfig wlan0 mode
master'.
Then something like:
ifconfig wlan0 10.10.7.1 netmask 255.255.255.0 up

Next put something in your dhcpd.conf file like:
-----------------------------------------------------
ddns-update-style ad-hoc;
option domain-name-servers 4.4.4.2;
option routers 10.10.7.1;
option subnet-mask 255.255.255.0;

subnet 10.10.7.0 netmask 255.255.255.0{
range 10.10.7.100 10.10.7.250;
}
------------------------------------------------------
Fire up dhcpd and users should be able to connect. To allow routing
try:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD ACCEPT
iptables -t nat -I POSTROUTING -s 10.10.7.0/24 -j MASQUERADE

I had to rebuild my kernel a couple of time before I got all the
routing stuff tweaked. But it worked OK. Good luck.


Reply With Quote
  #12 (permalink)  
Old 08-04-2006, 03:59 AM
bgeer
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

dold@XReXXUSBXW.usenet.us.com writes:

>DLink DWL-122 is the device that I would like to use.


>I don't understand why ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/ doesn't
>have binaries available. They point to Jean's page as an "excellent HOWTO"
>but it seems very old, and doesn't have my binaries.


Try http://www.linux-wlan.com/linux-wlan/

My "dlink122up" script is below - no incryption, just connects to an
access point as a basic wireless client. It worked for my needs at
the time. I no longer have the system I used it with. I'm pretty
sure that I once started it in "master" mode, but didn't keep any
notes on how I did it, since I already had a 11g access point at home
& use an 11g PCI when I travel [I don't have a laptop, I lug around a
Shuttle XPC & beg use of a monitor...:-]

Good luck, HTH, Bob

#!/bin/sh
#
# Set up wireless networking for D-Link DWL-122 Wireless USB Adaptor
#
MY_HOSTNAME=`/bin/hostname`

AWK=/usr/bin/awk
DHCPCD=/sbin/dhcpcd
GREP=/usr/bin/grep
IFCONFIG=/sbin/ifconfig
LSMOD=/sbin/lsmod
MODPROBE=/sbin/modprobe
WLANCTL=/sbin/wlanctl-ng

echo "Starting wireless network for D-Link DWL-122 Wireless USB Adaptor:"

if [ -z "` $LSMOD | $GREP prism2 | $AWK {'print $1'} `" ]
then
echo " Loading modules..."
$MODPROBE prism2_usb prism2_doreset=1
else
echo " Modules already loaded..."
fi

if [ -x $WLANCTL ]
then
echo " Configuring device - includes 10 second sleep..."
$WLANCTL wlan0 lnxreq_ifstate ifstate=enable
# the command above may not be needed everytime; however leaving it
# in requires a sleep 10; sleep 5 doesn't seem to be enough
sleep 10

echo " Joining our home wireless network..."
$WLANCTL wlan0 lnxreq_autojoin ssid="[put ssid here]" authtype=opensystem
fi

if [ -x $DHCPCD ]
then
echo " Soliciting IP via DHCP for $MY_HOSTNAME..."
$DHCPCD -h $MY_HOSTNAME wlan0
fi

echo " You may need to set up routing."
echo "Wireless network setup complete."
--
<> Robert Geer & Donna Tomky | |||| We sure |||| <>
<> bgeer@xmission.com | == == find it == == <>
<> dtomky@xmission.com | == == enchanting == == <>
<> Albuquerque, NM USA | |||| here! |||| <>

Reply With Quote
  #13 (permalink)  
Old 08-04-2006, 06:19 PM
dold@XReXXUSBXW.usenet.us.com
Guest
 
Posts: n/a
Default Re: USB WiFi + Linux, have you tried it?

In alt.internet.wireless bgeer <bgeer@xmission.com> wrote:
> dold@XReXXUSBXW.usenet.us.com writes:
> >DLink DWL-122 is the device that I would like to use.

> Try http://www.linux-wlan.com/linux-wlan/


I've been to that page a few times, what I refer to as a ciruclar
reference, pages link to pages that link back to the same pages.

I don't see a binary there that is obviously compatible with the DWL-122.

At one point, I took the highest-kernel rpm from
http://prism2.unixguru.raleigh.nc.us
even though it is lower than mine. That installed to
/lib/modules/2.4.21-32.EL instead of 2.4.21-40.EL.
Taking a chance, I copied those modules into the -40 tree.

That still gave me the message that prism2_usb was not found when I tried
the modprobe.

I decided to build from the wlan-ng source. That fails due to unresoved
externals, first to msleep, then to a slew of other items.

Back to raleigh, where I thought I'd build from his source. I found the
lines:
cd /usr/src/linux-2.4.18-10
cp configs/kernel-2.4.18-i686.config .config
make oldconfig
make dep

I tried that with my build of the wlan-ng modules. I could then load
prism2_usb (I had corrected the msleep call), but p80211 failed with a
bunch of unresolved references.

So, I thought I'd go back to the raleigh down-rev modules, but the dependcy
link in the -40 kernel directory.

But now I've got older modules than the ones I just compiled, and I'm
having difficulty with the make oldconfig.

I think I just started a full kernel build, which seems like quite a waste
of time, when all I wanted was an RPM from DLink. ;-(

--
---
Clarence A Dold - Hidden Valley Lake, CA, USA GPS: 38.8,-122.5

Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LINUX + Intel 2200BG WiFi Detection & Connecting DELL Inspiron 9200 LAPTOP MontyW alt.internet.wireless 2 03-03-2007 12:01 PM
Linux gains enhanced WiFi stack Noodles Wireless News 0 05-02-2006 12:15 PM
Linux Wifi laptop guidance requested. Rico alt.internet.wireless 5 10-28-2005 01:56 PM
Security fears over MS October patches... Imhotep alt.computer.security 31 10-23-2005 01:58 AM
Linux Wifi Config RedCamel NZ Wireless 0 02-07-2004 12:10 PM


All times are GMT. The time now is 10:33 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45