LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2009, 08:16 PM   #1
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Rep: Reputation: 32
Do I need a new stanza in network-interfaces to get wireless connection up?


Please bear with me, 3 new threads after a long silence! And something tells me I should be able to deal with this, but I can't find anything here or elsewhere on the web.

I'm determined to get my laptop to work wirelessly. The installers (both Ubuntu & Debian, I prefer Debian) find my network, but the os doesn't.

Here's /etc/network/interfaces:
Code:
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
That, I assume, is why I can't
Code:
ifup wlan0
and any attempt to enable wireless in gnome network admin is pointless.

So I'm guessing I need to add something to this file- ?

Thanks
 
Old 08-14-2009, 08:08 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Well first run lspci and make sure you see your card, you should as the installer detected it but this will also tell you if there is a kernel module loaded for it and if so what module. That is important becuase if no module is loaded then no matter what you do to your interfaces file it won't show up. Second make sure you don't need anything additional for your wireless, like firmware. For instance I have an Intel 3495ABG wireless card and I needed to apt-get the firmware package for it after I installed the system. Third, yes you do need to add an interface line in your Interfaces file

Code:
allow-hotplug wlan0
iface wlan0 inet dhcp
Would give you the basics, and should let the ifup wlan0 work, note the interface needs to be up for network manager or anything else use it.
 
Old 08-14-2009, 03:09 PM   #3
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Original Poster
Rep: Reputation: 32
Here is lspci -v output:
Code:
02:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
	Subsystem: Device 1a3b:1026
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at fa9f0000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: [40] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
	Capabilities: [60] Express Legacy Endpoint, MSI 00
	Capabilities: [90] MSI-X: Enable- Mask- TabSize=1
	Capabilities: [100] Advanced Error Reporting <?>
	Capabilities: [140] Virtual Channel <?>
	Kernel driver in use: ath5k_pci
	Kernel modules: ath5k

06:00.0 Ethernet controller: Attansic Technology Corp. L2 100 Mbit Ethernet Adapter (rev a0)
	Subsystem: ASUSTeK Computer Inc. Device 1415
	Flags: bus master, fast devsel, latency 0, IRQ 219
	Memory at feac0000 (64-bit, non-prefetchable) [size=256K]
	Expansion ROM at feaa0000 [disabled] [size=128K]
	Capabilities: [40] Power Management version 2
	Capabilities: [48] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+
	Capabilities: [58] Express Endpoint, MSI 00
	Capabilities: [6c] Vital Product Data <?>
	Capabilities: [100] Advanced Error Reporting <?>
	Kernel driver in use: atl2
	Kernel modules: atl2
That seems OK, but I don't know where to look in order to follow up your suggestion regarding firmware?

I have however made the change to interfaces.

Here is the result of ifup wlan0:
Code:
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:15:af:5e:77:4a
Sending on   LPF/wlan0/00:15:af:5e:77:4a
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
I have installed wicd from debian squeeze (I am using lenny but this does not have wicd), have not removed gnome-network-admin as it looks drastic.

Wireless network is not detected.

I looked at http://ubuntuforums.org/showthread.php?t=902860- not good!

Then http://www.linuxquestions.org/questi....11abg-646443/

leading to
http://www.drewwithers.com/content/d...ite-a215-s4747

This looks like 6 hours of hacking. I don't mind hacking and would like to learn how to do this, but don't have a load of time just yet. If there is a simpler fix, I'd prefer to go for that first.

Thanks for your reply, scheidel21
 
Old 08-14-2009, 03:14 PM   #4
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Original Poster
Rep: Reputation: 32
quick update- sorry if this is like spamming but it's useful:
http://ubuntumanual.org/posts/185/in...iver-in-ubuntu shows another way and that looks achievable, I have ubuntu on this box as well as debian. What do you think?
 
Old 08-14-2009, 03:52 PM   #5
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
You have the right driver loaded but you need a newer version take a look at this

http://wiki.debian.org/DebianEeePC/H...AtherosModules

perhaps just adding backports to your apt list and then getting the new kernel might work, or you can build the new version of the module against your current kernel the link has instruction on how to do that.
 
Old 08-14-2009, 03:53 PM   #6
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
here is a link on backports of the kernel from sid to lenny
http://wiki.debian.org/DebianEeePC/H...ues.2BAC8-tips
 
Old 08-14-2009, 06:28 PM   #7
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Original Poster
Rep: Reputation: 32
Great! That has the "feel" of a fix.

So far I have updated sources.list and imported the key, apt-get update gave a message confirming that it had unexpectedly listed release ofa lenny backport- that seems OK.

I expect that, having updated my repository sources, I need to apt-get install something- however synaptic lists about 50 packages in response to a "backport" name search. What should I be looking for?
Thanks again.
 
Old 08-14-2009, 08:14 PM   #8
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Look for the work kernel search fro it and select the kernel image you need/want.
 
Old 08-23-2009, 06:41 PM   #9
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Original Poster
Rep: Reputation: 32
Decided to upgrade kernel to 2.6.29. That hasn't solved the problem on its own, further googling indicated madwifi as the module package for atheros. Using m-a a-i madwifi, built OK on 2.6.26 but on 2.6.29, problems started here:

Quote:
Entering directory ▒
│ `/usr/src/linux-headers-2.6.29-020629-generic' ▒
│ CC [M] /usr/src/modules/madwifi/ath/if_ath.o ▒
│ /usr/src/modules/madwifi/ath/if_ath.c: In function 'ath_attach': ▒
│ /usr/src/modules/madwifi/ath/if_ath.c:478: error: 'struct net_device' ▒
│ has no member named 'priv' ↓
The "has no member named 'priv' " is recurring for the rest of the build log.

Is this something you recognize? The kernel backport build was straightforward, although not obvious at first- seems that 3 packages are needed, one with "all" in the title, then "generic" finally the big "image" file, but I thought the new kernel was preferable to the patch? Cheers
 
Old 08-26-2009, 04:30 AM   #10
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Original Poster
Rep: Reputation: 32
almost solved, see http://www.linuxquestions.org/questi...solved-750237/
 
  


Reply



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
Howto bridge wireless and wired network interfaces? pohl886 Debian 11 07-19-2011 06:58 PM
No wireless extensions for any network interfaces? Caldus Linux - Newbie 5 02-04-2008 02:19 PM
Internet Connection issue with 2 Network interfaces Andrea_44 Ubuntu 1 10-05-2006 03:08 PM
/etc/network/interfaces -- more than one wireless network? ErrorBound Linux - Wireless Networking 3 07-18-2006 02:09 PM
/etc/network/interfaces for wireless usb h2gofast Linux - Wireless Networking 2 10-15-2005 10:17 AM

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

All times are GMT -5. The time now is 12:39 AM.

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