Click to See Complete Forum and Search --> : wireless NIC problems


pepper
04-25-2004, 08:27 PM
hello everyone,

I have a problem with my new network card. I recently installed a netgear super G wireless network card (Model number WG311T) on my fedora Core 1 OS. I used a RPM that I had for my old Linksys wireless card. The RPM used the drivers from the linux-wlan-ng project.

I have been searching online and I have found that there is a different driver for the wireless G networks. Is that true? If it is would someone point me into the right direction so that I can get internet access to my linux OS.

Thank you,

Pepper

scinerd
04-25-2004, 09:26 PM
me and most people use the linuxant.com driver loader. It allows you to use the windows driver under linux. I used it and was able to get my card working in like 5 minutes. The down side is it's not free.

Icarus
04-25-2004, 10:12 PM
http://linuxant.com

Also, there is a free one that works well and uses the same concept
http://ndiswrapper.sourceforge.net/

pepper
04-28-2004, 01:47 AM
I only have one more question, I looked at the supported chipsets on the linuxant website and I found the 54 Mbps version of my card but not the 108 Mbps version. So my question is if I download the driver and install it will my 108 wireless card work?


pepper

gehidore
04-28-2004, 02:30 AM
should but may not run at 108mb

but then again it may run perfect at 108mb

:)

pepper
04-28-2004, 03:56 AM
I have just installed the linuxant driver on my fedora core 1 OS. I have not been able to activate my wireless card since I installed it. I do use WEP on my network. I am positive that I am using the right key to the WEP. How can I get my wireless network card activated?

By the way for now I downloaded the trial version off the linuxant website. Do I need to have the Key installed to get this to work?

Pepper

Icarus
04-28-2004, 07:04 AM
Yes, you need to get a key for it to work. Just hit the "Free trial" button and it will be e-mailed it to you
Also, for the WEP you need to install the Wi-Fi Protected Access (WPA) module.

pepper
04-28-2004, 04:59 PM
can someone give me a link to where I can download the WPA module. I have looked all over the linuxant website and couldn't find it

Icarus
04-28-2004, 05:16 PM
Originally posted by pepper
can someone give me a link to where I can download the WPA module. I have looked all over the linuxant website and couldn't find it It's at the bottom of the download page

pepper
04-28-2004, 10:36 PM
Does anyone know if there is a rpm for the libpcap and libdnet libraries. It seems that I can't compile the wpa module without it.

I tried the tar package that I found off the linuxant website but I couldn't get it to compile. If you want me to display my errors, let me know. I am running fedora core 1

gehidore
04-28-2004, 10:44 PM
rpmfind (speakeasy.rpmfind.net)

mdwatts
04-29-2004, 12:29 PM
Originally posted by pepper

I tried the tar package that I found off the linuxant website but I couldn't get it to compile. If you want me to display my errors, let me know. I am running fedora core 1

Anything in those error messages on cannot find gcc/cc? Do you have the development packages installed?

If you cannot locate rpm packages for those libraries on rpmfind, post those errors.

Have you first checked your distros installation cd(s) for those rpm packages? I have libpcap installed (libpcap-0.7.2-33) with my distro (SuSE), but not libdnet.

pepper
04-29-2004, 05:15 PM
gcc/cc are installed on my system. I did install the development package. I also have libpcap installed but not libdnet. I looked on rpmbuild.net site and could not find a fedora core 1 rpm I did find a mandrake rpm as well as a few other distributions. Can I use one of those rpms or does the rpm have to be built for a fedora core 1 os specifically?

Attached are my errors.

pepper
05-01-2004, 04:40 PM
Here is the output of when I execute 'make' in the libdnet directory
[root@www libdnet-1.7] make
Making all in include
make[1]: Entering directory '/root/libdnet-1.7/incude'
make all-recursive
make[2]: Entering directory '/root/libdnet-1.7/incude'
Making all in dnet
make[3]: Entering directory '/root/libdnet-1.7/incude/dnet'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/libdnet-1.7/include/dnet'
make[3]: Leaving directory '/root/libdnet-1.7/include'
make[2]: Leaving directory '/root/libdnet-1.7/include'
make[1]: Leaving directory '/root/libdnet-1.7/include'
Making all in man
make[1]: Entering directory '/root/libdnet-1.7/man'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/libdnet-1.7/man'
Making all in src
make[1]: Entering directory '/root/libdnet-1.7/src'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g -02 -Wall -c fw-ipchains.c
In file included from fw-ipchains.c:15:
/usr/include/linux/ip.h:95: error: syntax error before "__u8"
/usr/include/linux/ip.h:102: error: syntax error before "tot_len"
/usr/include/linux/ip.h:103: error: syntax error before "id"
/usr/include/linux/ip.h:104: error: syntax error before "frag_off"
/usr/include/linux/ip.h:105: error: syntax error before "ttl"
/usr/include/linux/ip.h:106: error: syntax error before "protocol"
/usr/include/linux/ip.h:107: error: syntax error before "check"
/usr/include/linux/ip.h:108: error: syntax error before "saddr"
/usr/include/linux/ip.h:109: error: syntax error before "daddr"
In file included from /usr/include/linux/tcp.h:21,
from fw-ipchains.c:16:
/usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header; include <endian.h> instead!
In file included from fw-ipchains.c:16:
/usr/include/linux/tcp.h:105: error: braced-group within expression allowed only inside a function
/usr/include/linux/tcp.h:105: error: enumerator value for 'TCP_FLAG_CWR' not integer constant
/usr/include/linux/tcp.h:106: error: syntax error before "__u32"
/usr/include/linux/tcp.h:107: error: syntax error before "__u32"
/usr/include/linux/tcp.h:108: error: syntax error before "__u32"
/usr/include/linux/tcp.h:109: error: syntax error before "__u32"
/usr/include/linux/tcp.h:110: error: syntax error before "__u32"
/usr/include/linux/tcp.h:111: error: syntax error before "__u32"
/usr/include/linux/tcp.h:112: error: syntax error before "__u32"
/usr/include/linux/tcp.h:113: error: syntax error before "__u32"
/usr/include/linux/tcp.h:114: error: syntax error before "__u32"
In file included from fw-ipchains.c:25:
/usr/include/linux/netfilter_ipv4/ipchains_core.h:114: error: field 'fwp_iph' has incomplete type
make[1]: *** [fw-ipchains.o] Error 1
make[1]: Leaving directory '/root/libdnet-1.7src'
make: *** [all-recursive] Error 1

Please let me know why these errors are occuring

mdwatts
05-02-2004, 10:17 AM
Do you have the correct kernel source installed for your current running kernel version?

rpm -q kernel-source

or

rpm -qa | grep kernel

pepper
05-02-2004, 04:08 PM
Yes the kernel-source is the kernel version that I am using. The kernel version I am using is 2.4.22-1.2115.nptl

I do have a second kernel option on my system. It is 2.4.22-1.2115.nptlsmp. However I am currently using the 2.4.22-1.2115.nptl option

mdwatts
05-02-2004, 05:45 PM
Originally posted by pepper

/usr/include/linux/tcp.h

I'm just wondering if tcp.h in /usr/include/linux is the correct header that should be used.

From my distro (SuSE 9.0)

# rpm -qf /usr/include/linux/tcp.h
glibc-devel-2.3.2-87

Now tcp.h from my kernel source directory.

# rpm -qf /usr/src/linux-2.4.21-202-include/default/include/linux/tcp.h
kernel-source-2.4.21-202

The kernel you are booted to is 2.4.22-1.2115.nptl, but does

rpm -q kernel-source

show 2.4.22-1.2115.nptl?

Do you have a symlink from

/usr/src/linux-2.4.22-1.2115.nptl

to

/usr/src/linux

pepper
05-02-2004, 07:50 PM
Originally posted by mdwatts
I'm just wondering if tcp.h in /usr/include/linux is the correct header that should be used.

From my distro (SuSE 9.0)

# rpm -qf /usr/include/linux/tcp.h
glibc-devel-2.3.2-87

The out put I get is glibc-kernheaders-2.4-8.36

Now tcp.h from my kernel source directory.

# rpm -qf /usr/src/linux-2.4.21-202-include/default/include/linux/tcp.h
kernel-source-2.4.21-202

kernel-source-2.4.22-1.2115.nptl

The kernel you are booted to is 2.4.22-1.2115.nptl, but does

rpm -q kernel-source show 2.4.22-1.2115.nptl?


Yes


Do you have a symlink from /usr/src/linux-2.4.22-1.2115.nptl

to

/usr/src/linux

Yes

mdwatts
05-03-2004, 12:27 PM
To use the new Wi-Fi Protected Access (WPA) security features, the wpa_supplicant below must also be installed.
If you get errors compiling it, make sure the libpcap and libdnet libraries are installed with development header files. If libdnet is not available from your distribution, get it from http://libdnet.sourceforge.net or use rpmfind to search for alternative packages.


Does your distro have glibc-devel? Check to see if installed and if not, your installation cd(s).

Their mailing lists might be of some help. You could try searching for libdnet and/or the error.

http://sourceforge.net/mail/?group_id=36243

If all else fails, see if you can use the Mandrake source rpm

ftp://fr2.rpmfind.net/linux/Mandrake/10.0/contrib/SRPMS/libdnet-1.7-3mdk.src.rpm

and rebuild for your system.

rpmbuild --rebuild <package name>

mdwatts
05-03-2004, 12:40 PM
Compiles and installs on SuSE 9.0 with no problems.

Speaking of libdnet mailing lists, I believe you will find the solution in these 2 threads from their mailing lists. Seems it is a known problem with Redhat/Fedora.

http://sourceforge.net/mailarchive/forum.php?thread_id=3925763&forum_id=122

http://sourceforge.net/mailarchive/forum.php?thread_id=4087688&forum_id=122

pepper
05-04-2004, 07:22 PM
hello again I have fixed all my compilation problems I was able to get it compiled by following the instructions in the second link in the last post.

Now I have compiled the wpa module. How do I install it. I've looked in the Makefile and I didn't see a rule to install. I read the readme and from the readme I got the feeling that it had to be installed to the /sbin directory? Also how do I configure the WPA module so that wihen I try and activate the network card I am able to activate it?

mdwatts
05-05-2004, 12:11 PM
Originally posted by pepper
hello again I have fixed all my compilation problems I was able to get it compiled by following the instructions in the second link in the last post.

Now I have compiled the wpa module. How do I install it. I've looked in the Makefile and I didn't see a rule to install. I read the readme and from the readme I got the feeling that it had to be installed to the /sbin directory? Also how do I configure the WPA module so that wihen I try and activate the network card I am able to activate it?

Darn nice of me to find those instructions for you, wasn't it? :(

Do you now have a ?? wpa.o module? Copy it to perhaps /lib/modules/<kernel version>/kernel/drivers/net/wireless and see if it is automatically loaded with the other modules.

Run 'depmod -ae' (as root) after copying that module to the above directory.

pepper
05-06-2004, 07:32 PM
I am having trouble with getting my network card to get the IP information from my router. I am running the linuxant driver and I have compiled the wpa module. I am not sure what to do with the compiled objects once the complation is done. Right now they are in the directories that the source files are/

When I try and activate my network card from the redhat network configuation window it can not determine the IP address of the router/ISP.

When I do a iwconfig command I see my router and ssid and the mac address of my AP and the encryption key. I am using a 128 bit WEP encryption. I don't know where to go from here? Any ideas?

mdwatts
05-07-2004, 12:34 PM
Originally posted by pepper
I am running the linuxant driver and I have compiled the wpa module. I am not sure what to do with the compiled objects once the complation is done. Right now they are in the directories that the source files are/

When I try and activate my network card from the redhat network configuation window it can not determine the IP address of the router/ISP.

When I do a iwconfig command I see my router and ssid and the mac address of my AP and the encryption key. I am using a 128 bit WEP encryption. I don't know where to go from here? Any ideas?

As I posted above, you need to copy the new modules you require to one of the directories in /lib/modules/<kernel version>/.. or else the kernel module loader will not be able to find them is located elsewhere. Copy them to /lib/modules/<kernel version>/kernel/drivers/net/wireless and run

depmod -ae

all as root. Check to see if any of the required modules are loaded with

/sbin/lsmod

and if necessary, manually load what is missing with

modprobe <module>

Have you configured dhcp and set the gateway address and dns servers? The gatway and dns server ip addresses should be set to the ip address of the router.

pepper
05-09-2004, 04:13 PM
hello everyone I have moved away from getting my network card (wg311t) to work with the driveloader driver. I am now trying to get my network card to work with the madwifi driver. I found a link to the driver here: http://www.linuxquestions.org/hcl/showproduct.php?product=874

I downloaded the driver through cvs and tried to install it. I got through most of the problems but when i tried to modprobe the three drivers gave depmod problems. They all have unresolved symbols. I did find a patch on sourceforge.net but I could not get it installed I am not good at applying patches.

Is anyone running the madwifi driver on fedora core 1 with the wg311t network card? I would very much appreciate any help you can give me. I have also upgraded my kernel to 2.4.22-1.2188.nptl in hpes that it would help me get this working but it hasn't

pepper

mdwatts
05-09-2004, 05:17 PM
Glad to at least try to help you.

Installed the kernel-source for the new kernel before you attempted to compile the madwifi drivers?

<edit>

Also searched the JL forums for 'madwifi' (http://justlinux.com/forum/search.php?s=&action=showresults&searchid=943293&sortby=lastpost&sortorder=descending)?

pepper
05-09-2004, 07:15 PM
yes, before I compiled the madwifi drivers i had the kernel-source installed for the new kernel. I have also looked at the pages that came up in the search and have not found anything that will help in my problem.

mdwatts
05-10-2004, 04:57 PM
So where are we on this? Still the unresolved symbols and problems installing the kernel patch?

What is the patch for? Could you please post some of the unresolved symbol errors and the patch command errors?

pepper
05-10-2004, 05:37 PM
Ok this is where I am. I have figured out why I was getting the unresolved symbols when I executed a modprobe command of all three modules wlan, ath_hal and ath_pci. The problem was that in my kernel configuration i had CONFIG_MODVERSIONS set to yes when it should have been set to no. After fixing that I changed my kernel makefile to let it know to rebuild the current kernel and not build a new kernel. I took the word custom off the EXTRAVERSION tag in the makefile. Once I did that I executed 'make install'. Once that was done I rebuilt the madwifi drivers and installed them. After I installed them I did a modprobe and i got no problems.

However I do have a new problem. Now that I can setup my wireless card I have been following the instructions of setting up my network from here (http://www.linuxquestions.org/questions/showthread.php?s=&threadid=163192&highlight=madwifi) . I get everything setup correctly except for my encryption security mode. The security mode is setup to be restricted but when I execute iwconfig I get a security mode that says open. in my router settings it is set to shared key. Iwconfig doesn' have a keyword 'shared-key' so I assume that restricted=shared-key. I tried setting the security mode to restricted when I enter the key but it stays at open. Can anyone think of a way to get the securitiy mode changed to restricted? Oh one other thing I noticed on a numbor of different websites
that after all the iwconfig settings are set the command dhcpcd ath0 is run to get the ip address. I have tried to run that and it gave me a error saying that dhcpcd command not found.

Any help on either problem would be great.

pepper

mdwatts
05-10-2004, 05:57 PM
Originally posted by pepper
Can anyone think of a way to get the securitiy mode changed to restricted?

Oh one other thing I noticed on a numbor of different websites that after all the iwconfig settings are set the command dhcpcd ath0 is run to get the ip address. I have tried to run that and it gave me a error saying that dhcpcd command not found.


Can you use 'managed' for the mode?

Are you root when executing dhcpcd? It should be in /sbin.

/sbin/dhcpcd

pepper
05-10-2004, 06:25 PM
In my /sbin directory I do not have a dhcpcd command. I do have a dhclient and dhclient-script command.

for the mode of managed, that is used for determing whether the device is connecting to a AP or if it is connecting to a Ad-Hoc network. Restricted refers to the encryption key.

mdwatts
05-11-2004, 11:58 AM
Originally posted by pepper
In my /sbin directory I do not have a dhcpcd command. I do have a dhclient and dhclient-script command.

for the mode of managed, that is used for determing whether the device is connecting to a AP or if it is connecting to a Ad-Hoc network. Restricted refers to the encryption key.

See what dhcp packages you have installed.

rpm -qa | grep dhc

Is dhcpcd required for dynamic ip addressing or just dhclient? I only use static.

Do you have a script in /etc/sysconfig/network for you wireless nic? Something like

/etc/sysconfig/network/ifcfg-eth0

BOOTPROTO='static'
BROADCAST='192.168.1.255'
IPADDR='192.168.1.4'
MTU=''
NETMASK='255.255.255.0'
NETWORK='192.168.1.0'
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='ZcKW.SYXZLk83VE3'

but with

BOOTPROTO='dhcp'

One of our JL members just posted a howto in the 'How I did it' forum that might help.

pepper
05-13-2004, 02:48 AM
I have a weird problem. I put my old linksys wmp11 card back in my computer so I could get my computer back online. I have drivers for that card that I know works. the problem is that I can get access my network with this wireless b card but i can't any internet access. My AP is a netgear 108 MB G network. In my lan setup i allowed the option fof having b and g network devices connect to the AP. Does anyone have an idea on how can I fix this so I get internet access?

Icarus
05-13-2004, 06:58 AM
Sounds like you didn't get DNS refreshed...

Check your /etc/resolv.conf to see if you have any DNS servers listed in there

pepper
05-13-2004, 01:41 PM
no I don't have any DNS servers listed. what do I put in this file and what is the format

Icarus
05-13-2004, 01:54 PM
The format is just a simple IP per line
What IP to use, check with your ISP on that one...just ask them "What are the DNS servers we use with this ISP?"
It's probably posted somewhere in your ISP's web site also

There are a few free DNS servers available, search google for "open dns server"

mdwatts
05-13-2004, 02:03 PM
Originally posted by pepper
no I don't have any DNS servers listed. what do I put in this file and what is the format

The 5th one down from a JL forum search for '/etc/resolv.conf' (http://justlinux.com/forum/showthread.php?s=&threadid=127158&highlight=%2Fetc%2Fresolv.conf). :)

pepper
05-13-2004, 03:35 PM
Thank you to everyone that helped me get my network card working. My problem was that I did not check the check box that allowed the network card to obtain the dns information from the ISP. I am using my wireless B card rather than my G card. When there is a release of the madwifi driver I will try and change over to my G network card.

mdwatts
05-13-2004, 04:36 PM
Glad we could help and the fact you finally got it working. :)

Enjoy!!!