LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 02-24-2007, 11:27 AM   #1
ahaslam
LQ Newbie
 
Registered: Jan 2007
Distribution: Arch x86_64
Posts: 26

Rep: Reputation: 15
Madwifi Installation - Zenwalk 4.4 (Kernel 2.6.20)


I installed madwifi without trouble on Zenwalk 4.0, but now it's not going too well under 4.4.

My first hurdle: http://support.zenwalk.org/index.php....html#msg38440

Borromini's reply regarding 'config.h' helped (thank you), but now I've encountered another hurdle:

Code:
root[madwifi-0.9.2.1]# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.20/build SUBDIRS=/usr/src/madwifi-0.9.2.1 modules
make[1]: Entering directory `/usr/src/linux-2.6.20'

  WARNING: Symbol version dump /usr/src/linux-2.6.20/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/src/madwifi-0.9.2.1/ath/if_ath.o
In file included from include/asm/pci.h:6,
                 from include/linux/pci.h:736,
                 from /usr/src/madwifi-0.9.2.1/ath/if_ath_pci.h:43,
                 from /usr/src/madwifi-0.9.2.1/ath/if_ath.c:84:
include/linux/mm.h:658:1: "offset_in_page" redefined
In file included from /usr/src/madwifi-0.9.2.1/ath/../net80211/if_media.h:44,
                 from /usr/src/madwifi-0.9.2.1/ath/if_ath.c:64:
/usr/src/madwifi-0.9.2.1/ath/../net80211/ieee80211_linux.h:427:1: this is the location of the previous definition
/usr/src/madwifi-0.9.2.1/ath/if_ath.c:415:60: macro "INIT_WORK" passed 3 arguments, but takes just 2
/usr/src/madwifi-0.9.2.1/ath/if_ath.c: In function `ath_attach':
/usr/src/madwifi-0.9.2.1/ath/if_ath.c:415: error: `INIT_WORK' undeclared (first use in this function)
/usr/src/madwifi-0.9.2.1/ath/if_ath.c:415: error: (Each undeclared identifier is reported only once
/usr/src/madwifi-0.9.2.1/ath/if_ath.c:415: error: for each function it appears in.)
/usr/src/madwifi-0.9.2.1/ath/if_ath.c: At top level:
/usr/src/madwifi-0.9.2.1/ath/if_ath.c:1705: warning: 'ath_radar_task' defined but not used
make[3]: *** [/usr/src/madwifi-0.9.2.1/ath/if_ath.o] Error 1
make[2]: *** [/usr/src/madwifi-0.9.2.1/ath] Error 2
make[1]: *** [_module_/usr/src/madwifi-0.9.2.1] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20'
make: *** [modules] Error 2
root[madwifi-0.9.2.1]#
Some more guidance would be greatly appreciated

Tony.
 
Old 02-25-2007, 01:52 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
I, too, haven't been able to build the driver with kernel 2.6.20. See my thread:

http://www.linuxquestions.org/questi...d.php?t=526517
 
Old 02-27-2007, 07:17 AM   #3
ahaslam
LQ Newbie
 
Registered: Jan 2007
Distribution: Arch x86_64
Posts: 26

Original Poster
Rep: Reputation: 15
OK, I got the svn & it compiled without an issue & the wireless works. I am left with one problem though. I can't add the necessary lines to rc.local as wpa_supplicant hangs, not allowing the system to boot. To get wireless running once logged in, I have to open up another terminal to issue: 'dhcpcd ath0' & keep the first one open.

Here's the output:

Code:
root[linda]# wpa_supplicant -D madwifi -i ath0 -c /etc/wpa_supplicant.conf -d
Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 0
   id=0 ssid='HomeHub'
Initializing interface (2) 'ath0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=21 WE(source)=13 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:18:39:6a:5d:53
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface ath0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
Ignore event for foreign ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=7):
     48 6f 6d 65 48 75 62                              HomeHub         
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b19 len=8
Received 483 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:14:7f:a2:36:c6 ssid='' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
1: 00:14:a5:53:18:42 ssid='belkin54g' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
   skip - no WPA/RSN IE
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=7):
     48 6f 6d 65 48 75 62                              HomeHub         
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=15
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b19 len=8
Received 774 bytes of scan results (3 BSSes)
Scan results: 3
Selecting BSS from priority group 0
0: 00:14:7f:a2:36:c6 ssid='HomeHub' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Trying to associate with 00:14:7f:a2:36:c6 (SSID='HomeHub' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_madwifi_associate
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
wpa_driver_madwifi_associate: SETMLME[ASSOC] failed
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=15
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:14:7f:a2:36:c6
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=00:14:7f:a2:36:c6
No keys have been configured - skip key clearing
Associated with 00:14:7f:a2:36:c6
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RX EAPOL from 00:14:7f:a2:36:c6
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
  key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=32 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 0e
  key_nonce - hexdump(len=32): f9 32 69 83 01 d4 1a f4 c1 22 8c 8b 5c e3 06 c2 d9 a7 1d e5 be da e1 7c 58 5f ca 62 ee 42 9e 0e
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:14:7f:a2:36:c6 (ver=1)
WPA: Renewed SNonce - hexdump(len=32): b7 76 15 6f 76 b6 a7 b1 35 4d e4 02 ea 28 58 13 8d 12 14 6a 6c 2f d4 28 fa db d1 88 ad 14 40 10
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:14:7f:a2:36:c6
IEEE 802.1X RX: version=1 type=3 length=121
  EAPOL-Key type=254
  key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=32 key_data_length=26
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 0f
  key_nonce - hexdump(len=32): f9 32 69 83 01 d4 1a f4 c1 22 8c 8b 5c e3 06 c2 d9 a7 1d e5 be da e1 7c 58 5f ca 62 ee 42 9e 0e
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): c5 42 28 8b a1 7a f3 39 a2 e8 97 47 92 61 ff 95
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 00:14:7f:a2:36:c6 (ver=1)
WPA: IE KeyData - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 0c 00
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_madwifi_set_key: alg=TKIP key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RX EAPOL from 00:14:7f:a2:36:c6
IEEE 802.1X RX: version=1 type=3 length=127
  EAPOL-Key type=254
  key_info 0x391 (ver=1 keyidx=1 rsvd=0 Group Ack MIC Secure)
  key_length=32 key_data_length=32
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 11
  key_nonce - hexdump(len=32): f9 32 69 83 01 d4 1a f4 c1 22 8c 8b 5c e3 06 c2 d9 a7 1d e5 be da e1 7c 58 5f ca 62 ee 42 9d d9
  key_iv - hexdump(len=16): d9 a7 1d e5 be da e1 7c 58 5f ca 62 ee 42 9e 0f
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 21 2d 07 5f c7 17 bc 3f 69 3a ce a4 f4 f7 c5 aa
WPA: RX message 1 of Group Key Handshake from 00:14:7f:a2:36:c6 (ver=1)
State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE
WPA: Group Key - hexdump(len=32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=1 tx=0).
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_madwifi_set_key: alg=TKIP key_idx=1 set_tx=0 seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: Key negotiation completed with 00:14:7f:a2:36:c6 [PTK=TKIP GTK=TKIP]
Cancelling authentication timeout
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:14:7f:a2:36:c6 completed (auth) [id=0 id_str=]
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
WEXT: Operstate: linkmode=-1, operstate=6
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: SUPP_BE entering state IDLE
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
EAPOL: startWhen --> 0
As you can see it does work, I just need it to start at boot without user intervention as this laptop is going to a complete n00b.

Thanks in advance,

Tony.

PS. After being connected for a few minuites it provides some extra output:

Code:
RTM_NEWLINK: operstate=1 ifi_flags=0x11063 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK: operstate=1 ifi_flags=0x11063 ([UP][RUNNING][LOWER_UP])
Wireless event: cmd=0x8b19 len=8
Received 774 bytes of scan results (3 BSSes)
Scan results: 3
Selecting BSS from priority group 0
0: 00:14:7f:a2:36:c6 ssid='HomeHub' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Already associated with the selected AP.
RTM_NEWLINK: operstate=1 ifi_flags=0x11063 ([UP][RUNNING][LOWER_UP])
Wireless event: cmd=0x8b19 len=8
Received 774 bytes of scan results (3 BSSes)
Scan results: 3
Selecting BSS from priority group 0
0: 00:14:7f:a2:36:c6 ssid='HomeHub' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Already associated with the selected AP.
RTM_NEWLINK: operstate=1 ifi_flags=0x11063 ([UP][RUNNING][LOWER_UP])
Wireless event: cmd=0x8b19 len=8
Received 774 bytes of scan results (3 BSSes)
Scan results: 3
Selecting BSS from priority group 0
0: 00:14:7f:a2:36:c6 ssid='HomeHub' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Already associated with the selected AP.
???

Last edited by ahaslam; 02-27-2007 at 07:28 AM.
 
Old 03-04-2007, 05:04 AM   #4
ahaslam
LQ Newbie
 
Registered: Jan 2007
Distribution: Arch x86_64
Posts: 26

Original Poster
Rep: Reputation: 15
I'd just like to say that the SVN does work with kernel 2.6.20 it was simply user error

I'd forgotton to change the command from: wpa_supplicant -D madwifi -i ath0 -c /etc/wpa_supplicant.conf -d
To: wpa_supplicant -D madwifi -i ath0 -c /etc/wpa_supplicant.conf -B

If only I realised before installing an older version of Zenwalk & compiling a custom kernel, just to find the same problem...

At least it works eh
 
  


Reply

Tags
madwifi


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
madwifi-0.9.2 + kernel-2.6.19 = error GamerX Linux - Networking 3 12-05-2006 05:49 PM
Kernel panic error on zenwalk.....Plz help.... coolguy_2005 Zenwalk 7 11-12-2006 10:18 AM
Netgear WG311T, MadWiFi installation woes on OpenSuSE 10.0 Cb6000 Linux - Networking 3 02-02-2006 04:48 PM
madwifi driver installation xxsubz78x Linux - Wireless Networking 3 09-27-2005 09:10 AM
madwifi and kernel 2.6.8 ravalox Linux - Wireless Networking 2 08-27-2004 01:41 PM


All times are GMT -5. The time now is 03:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration