LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-12-2003, 11:30 AM   #61
bostonben
Member
 
Registered: Jun 2003
Location: Boston
Distribution: Red Hat 7.1
Posts: 31

Rep: Reputation: 15

Quote:
Originally posted by kronixx
What do you mean by a name server, and how would I find one? I have a normal NIC card, and it works just FINE without the resolv.conf file, or is that file wlan specific?
A nameserver resolves host names ("linuxquestions.org") to
IP addresses ("64.179.4.146"). But if you can't even ping
by IP address yet, a nameserver isn't your first problem :-)

If you're on Suse and you've gotten another NIC card working
"automagically", I wonder if the "ifup" scripts are working for
that interface, and if we could set them up for "wlan0".

Do you have any files with names like:
/etc/sysconfig/network-scripts/ifcfg-<whatever>
What's in them?

On my system (admittedly not Suse), I've created
a "/etc/sysconfig/network-scripts/ifcfg-wlan0" that looks
like this:
---snip---
DEVICE=wlan0
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
BOOTPROTO=dhcp
PEERDNS=yes
ONBOOT=no
---snip---

When I run my "wlanup" script and it "insmod"s the
driver into the kernel, the kernel invokes "/sbin/ifup"
(indirectly, via /etc/hotplug/net.agent). This script
reads the config file above and does the necessary
"ifconfig", "route", setting up resolv.conf, etc.

If you've already got a "ifcfg-eth0" file that works, creating
a similar "ifcfg-wlan0" can't hurt. (You'd also want to remove
the explicit "ifconfig" from your wlanup script in this case).
 
Old 06-12-2003, 11:45 AM   #62
bostonben
Member
 
Registered: Jun 2003
Location: Boston
Distribution: Red Hat 7.1
Posts: 31

Rep: Reputation: 15
Re: frustrated!

Quote:
Originally posted by ginster
I'm trying to verify them with iwconfig or iwlist or checking the /proc/rtl8180/status and even though i'm calling iwpriv wlan0 wlan_para channel=6, nothing is showing that this actually happened. What can I do to verify these settings??? My wlanup script insmod's the driver, sets the ssid2scan, networktype, channel, and wep off, in that order, then calls enable. I get three short blinks out of my link light on the card and then it's black.
This sounds like what happened to me when my card settings didn't
match my router settings.

I got pretty good at reading the debug output of the driver in these
cases. Try adding this:
/sbin/iwpriv wlan0 msglevel 2
just after the "insmod" in your "wlanup" script. Run the script, and
then eyeball the end of "/var/log/messages", from the last
"****RTL8180 ... loaded****" message to the end. Anything look strange?

If you can't make sense of it, post the output here and I'll try
to decipher it.
 
Old 06-12-2003, 12:00 PM   #63
bostonben
Member
 
Registered: Jun 2003
Location: Boston
Distribution: Red Hat 7.1
Posts: 31

Rep: Reputation: 15
Incidentally, in my so-far-unsuccessful quest to get this working
without "SSID Broadcasting" on my router, I've discovered that
the "wlan_para channel" seems to be ignored. When the driver
is "enable"-ed, it scans all 12 channels looking for the SSID and
just uses whichever channel it gets a probe response on.

"wlan_para channel" must only be used (like a lot of the other parameters) in "adhoc" mode, where the card itself has to act
as an access point. I wish the readme was a little clearer on stuff like this.
 
Old 06-12-2003, 02:14 PM   #64
steven999
LQ Newbie
 
Registered: May 2003
Distribution: Mandrake 9.1
Posts: 18

Rep: Reputation: 0
Hi everyone,

Thought I'd update my status. I did compile a 2.4.20 kernel and could insmod the driver without the computer dying. However, I couldn't quite get it working and was having other problems with my Mandrake install, so I decided to reformat and install a clean Redhat 9.

After doing so, I have been able to insmod the driver fine. I edited a wlanup script to match my settings here and dhclient and ifconfig wouldn't work. BUT, after making an ifcfg-wlan0 script, I did an ifup-wlan0 got online! Pretty excited after a few weeks to get to this point.

Now though I've taken my laptop to work and haven't quite figured out why I'm not able to connect the wireless AP here, though I'm pretty confident it's just settings of some sort. (I've got a linksys AP at home and there's a D-Link AP here). So will hopefully find the right set of settings for this guy and will be up at home and work. =)

Thanks everyone for working on this with me!

steven
 
Old 06-12-2003, 09:12 PM   #65
ginster
LQ Newbie
 
Registered: May 2003
Location: Greenville, SC
Distribution: Slackware 8.1
Posts: 13

Rep: Reputation: 0
ok - tried what bostonben suggested ...

In my /var/log/messages this is what I'm getting after wlandown script:
kernel: ***** RTL8180 Wireless Lan Driver Version 1.1 (2003-05-22) removed *****

This is what I'm getting after wlanup:
kernel:
/etc/hotplug/net.agent: register event not handled

(yes, that's a blank kernel: line) Could this be a hint? I've tried insmod with a -f and without ... same result.

any ideas?
 
Old 06-12-2003, 10:25 PM   #66
bostonben
Member
 
Registered: Jun 2003
Location: Boston
Distribution: Red Hat 7.1
Posts: 31

Rep: Reputation: 15
Quote:
Originally posted by ginster

This is what I'm getting after wlanup:
kernel:
/etc/hotplug/net.agent: register event not handled

(yes, that's a blank kernel: line)
That net.agent message might be interesting later, but you have to get the wireless parts working before you can worry about the
networking parts. If your card's "LINK" light isn't blinking, the wireless
parts aren't working yet.

There should have been a lot of "RTL8180:" and "wlan0" lines
in /var/log/messages at around the same time, showing the
card scanning for an active channel and then trying to associate
with an access point. If you post them, we can try to figure out
what's going wrong.
 
Old 06-12-2003, 10:37 PM   #67
ginster
LQ Newbie
 
Registered: May 2003
Location: Greenville, SC
Distribution: Slackware 8.1
Posts: 13

Rep: Reputation: 0
That's what I'm saying ... not getting any messages from wlanup. The only blinking is 2 or 3 quick one's when the iwpriv enable is called. Beleive me, I'd love to post some output for analysis ... but I'm gettin nothin.

thanks!
 
Old 06-13-2003, 10:28 AM   #68
bostonben
Member
 
Registered: Jun 2003
Location: Boston
Distribution: Red Hat 7.1
Posts: 31

Rep: Reputation: 15
Hmm, maybe this is a distro difference. "/etc/syslog.conf" specifies
where syslog messages go. On RedHat, it includes:
---snip---
*.info;mail.none;authpriv.none;cron.none /var/log/messages
---snip---
which means send pretty much everything (except mail, authpriv
and cron messages) to "/var/log/messages".

Anyway, check yours to see where Slackware sent all those driver
messages.

"man 5 syslog.conf" gives the ugly details, BTW.
 
Old 06-14-2003, 12:22 AM   #69
ginster
LQ Newbie
 
Registered: May 2003
Location: Greenville, SC
Distribution: Slackware 8.1
Posts: 13

Rep: Reputation: 0
well, making progress i guess ...

my syslog.conf file looks fine. should be output going to the /var/log/messages, but still getting none. so not sure what to do on that front.

BUT - just screwing around with the iwpriv settings in my script i discovered that by setting the type to auto and making sure the channel is set then the link light will start blinking and not stop until i wlandown. is there a hint there? i played around with all the settings i could, but they still don't really look like they're doing anything because iwconfig and iwlist don't show me my changes ...

thanks again!
 
Old 06-14-2003, 10:45 AM   #70
bostonben
Member
 
Registered: Jun 2003
Location: Boston
Distribution: Red Hat 7.1
Posts: 31

Rep: Reputation: 15
Well, I'm stumped on the syslog output.

"iwconfig" and "iwlist" don't work because this driver apparently
doesn't play nice with the wireless configuration API. finegan
had a post on this earlier.

If you've got the "LINK" light blinking, and "/proc/rtl8180/status"
shows the MAC address of your router as the BSSID, maybe it's working.

You could always try configuring networking through the "wlan0"
device and see what happens.
 
Old 06-14-2003, 11:55 AM   #71
ginster
LQ Newbie
 
Registered: May 2003
Location: Greenville, SC
Distribution: Slackware 8.1
Posts: 13

Rep: Reputation: 0
nope, router's mac address doesn't show up in /proc/rtl8180/status. It seems to be using a default one (0x00 0x11 0x22 0x33 0x44 0x55)

-BUT-

output is going to /var/log/syslog!
(this is not cut-and-paste ... no way yet to get anything off of this laptop)
============================================
***** RTL8180 Wireless Lan Driver Version 1.1 loaded *****
(region stuff)
STA is NOT acting as AP!
LITTLE_ENDIAN memory access
(eeprom stuff)
Tx Power Level, channel 0 = 0x24
... - 13 (they're all 0x24)
ChannelPlan = 0x0000
RFChipID = 0x0004
EEPROMVersion > 0x0101
AntennaDiversity = TRUE
CSThreshold = 0x000a
DigitalPhy = TRUE
DefaultAntennaB = TRUE
CSMethod = RCR_EnCS1
wlan driver loaded, ioaddr=0x4000, irq=5, MAC_addr=0:6:25:2d:a0:93
Use RTL private command [ssid]
Use RTL private command [networktype]
Use RTL private command [channel]
Use RTL private command [ssid2scan]
Turn on RTL_DDEBUG_INFO
------- Enable wlan driver --------
wlan0:rtl8180_MIB_init Set wCtx -> pMIB.dot11BeaconPeriod = 100 !!!
"".mBasicRates = 0xf (in hex) !!!
"".dot11OperationalRates = 0xf (in hex) !!!
"".AuthenAlg = opensystem !!!
"".dot11DtimPeriod = 3 !!!
"".dot11PrivacyOptionImplemented = 1 !!!
"".dot11RtsThreshold = 2346 !!!
"".dot11FragmentationThreshold = 2346 !!!
(MAXIM stuff)
wlan0:SwChnl Set PHY channel number = 11
RTL8180: ENABLE_RTL_DCST
(timer / scan stuff)
RTL8180: Set dot11PrivacyInvoked = 0
RTL8180: encryptmode = RTL_ENC_NONE
RTL8180: wepkeymode = WEP_MODE_OFF
wlan0:SwChnl Set PHY channel number = 1
RTL8180: Scan PHY channel number = 1
... - 11
(delete timer stuff)
RTL8180: No BSS detected, start an IBSS.wlan0: SwChnl Set PHY channel number = 6
RTL8180: Start an IBSS network at channel 6
wlan0_MLME-NicBeaconSetup set beaconItv=100, AtimWnd=25
wlan0_MLME-NicBeaconSetup set BintrItv=32, IMR=0x60cf
wlan0_MLME-SetupBeaconPacket setup ssid element in beacon frame
=============================================

Does the "No BSS detected" line mean it's not finding my router? (They're about 4 feet from eachother) Router WLAN Act light never blinks.

Thanks for all the help!
 
Old 06-14-2003, 11:58 PM   #72
bostonben
Member
 
Registered: Jun 2003
Location: Boston
Distribution: Red Hat 7.1
Posts: 31

Rep: Reputation: 15
Ouch, sorry to make you re-type all those messages!

I had to reset my router again today (after failing *again* to get
SSID broadcasting turned off. Grrr!), so I tried a few variations.
These messages:
---snip---
RTL8180: No BSS detected, start an IBSS.wlan0: SwChnl Set PHY channel number = 6
...
wlan0_MLME-NicBeaconSetup set beaconItv=100, AtimWnd=25
wlan0_MLME-NicBeaconSetup set BintrItv=32, IMR=0x60cf
wlan0_MLME-SetupBeaconPacket setup ssid element in beacon frame
---snip---
come out only if you're trying to run in "networktype=adhoc" mode.
I don't know if that's what you really want, but I've only used
"networktype=infra", which my router (a Linksys BEFW11S4)
seems to like. Indeed, a quick Google seems to indicate this
router has some "adhoc" problems.

When I tried "adhoc", I got all the same failures as you, except
I also got this during the scanning portion:
---snip---
wlan0:SwChnl Set PHY channel number = 6
RTL8180: Scan PHY channel number = 6
wlan0_MLME-OnProbeRsp Get value from probe response!
---snip---
showing the router was at least responding to probes. Only
by actually turning my router off could I duplicate exactly what
you typed.

So I'd suggest trying "networktype=infra", and then if that
doesn't work, just stamping up and down on the router :-)
 
Old 06-17-2003, 08:55 AM   #73
tychob
LQ Newbie
 
Registered: Jun 2003
Location: Tucson, AZ
Distribution: Fedora 9
Posts: 10

Rep: Reputation: 0
Hi all,

I have tried everything from this thread but I still can't get it to go om my Dell i8500 with Mandrake 9.1. I can set it all up and everything works fine withe my AP turned off. Module loads, wlanup sets all parameters. As soon as the AP is on the system freezes withe the capslock and scroll lock lights flashing.

Downloading RedHat 9.0 now as it seems that helped steven999. I still think there must be some way around the crashes but I can't find it. Any ideas?

Paul
 
Old 06-17-2003, 11:37 AM   #74
bfkeats
Member
 
Registered: Feb 2002
Posts: 38

Rep: Reputation: 15
Realtek 8180 card slow

I got mine working, but it's really really slow. It's an edimax EW-7106PC. I'm running redhat 9. Here's my wlanup file,

#Load module
/sbin/insmod -f /home/bfkeats/bin/rtl8180_24x.o
/sbin/insmod -f /home/bfkeats/bin/priv_part.o

#Set SSID
/sbin/iwpriv wlan0 wlan_para networktype=infra
/sbin/iwpriv wlan0 wlan_para wepmode=off
/sbin/iwpriv wlan0 wlan_para basicrates=0xf
/sbin/iwpriv wlan0 wlan_para oprates=0xf
/sbin/iwpriv wlan0 wlan_para authtype=opensystem
/sbin/iwpriv wlan0 wlan_para preamble=auto

#Enable wireless lan driver
/sbin/iwpriv wlan0 enable

#Configure wlan0 IP address
/sbin/ifconfig wlan0 192.168.1.1
ifup wlan0
echo "$(/sbin/ifconfig wlan0)"

The /proc/rtl8180/status file reads,

************ Current driver status ************
rtl8180_pci_driver loaded.
MacAddr = 00:50:fc:d0:0b:47
ioaddr = 0x4800
irq = 11


-- RTL8180 Link status --

Channel number = 6
beacon period = 100
BSSID = 0x00 0x01 0xf4 0xec 0x4f 0x3f
SSID = 0x53(S) 0x44(D) 0x20( ) 0x57(W) 0x69(i) 0x72(r) 0x65(e) 0x6c(l) 0x65(e) 0x73(s) 0x73(s)
Capability = 0x01
AID = 0x4b
Operational rate = <1><2><5.5><11>Mbps

Also, if i do a dmesg this line keeps repeating when I'm online.

RTL8180: Be in station mode in start_xmit!

Any help would be much appreciated.
 
Old 06-17-2003, 05:18 PM   #75
steven999
LQ Newbie
 
Registered: May 2003
Distribution: Mandrake 9.1
Posts: 18

Rep: Reputation: 0
hi tychob,

yes, using redhat things have been working well for me. i still haven't gone about getting the link up automatically with system scripts, but upping it manually for now and it's fine.

i tried using a different kernel on redhat, i think 2.4.20-11 that had some modifications to the kernel for low latency and other things. that also refused to work with the driver.

i did get pretty far with compiling a 2.4.20 kernel on mandrake, which you might want to try. if you download a stock 2.4.20 kernel and do 'make xconfig', there's an option to load a configuration in. doing that, you can select /boot/config which is a symlink (should be) to the config for the mandrake 2.4.21 kernel that comes with mandrake 9.1.

after that, i did get much further along the process, perhaps even all the way though not knowing it. i ended up switching to redhat as i just got frustrated, but there were other reasons besides the need for wireless.

either way, good luck!

steven
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linksys WPC11 version 4 aover25 Linux - Wireless Networking 5 02-12-2006 10:01 PM
WPC11 version 3 chiatello Linux - Networking 0 10-28-2003 08:32 PM
Linksys WPC11 version 4 kronixx Linux - Networking 1 06-07-2003 09:25 PM
WPC11 Version 4 StarCat Linux - Networking 1 05-03-2003 11:13 AM
Linksys WPC11 Version 3 haqtiq Linux - Networking 3 01-15-2003 10:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration