Results 1 to 3 of 3

Thread: madwifi and wpa_supplicant (UPDATED)

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    84

    madwifi and wpa_supplicant (UPDATED)

    I have another post that Redhead was helping me with, but I think I have made progress and have found another issue.

    Since there was a known good wpa_supplicant.conf file on my Ubuntu laptop, I just copied that one to my server's /etc folder and changed the ap_scan value from 2 to 1.

    Code:
    ctrl_interface=/var/run/wpa_supplicant
    ap_scan=1
    
    network={
            ssid="MYSSID"
    	scan_ssid=1
    	proto=WPA RSN
    	key_mgmt=WPA-PSK
    	pairwise=CCMP TKIP
    	group=CCMP TKIP
    	psk=94632462d61f15cab6d5734014a333df523aa6e94bacc970313db5b2fabfd6d
    }
    I ran

    Code:
    wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf
    with my router's web interface open and, shazam! It was picking up an IP address. I could ping it. I even opened http://192.168.1.111 and saw the default apache page ("It works!").

    Excellent.

    But I go back to the command line interface on my server and see the following:

    Code:
    Trying to associate with ('MAC address of my router') (SSID='MYSSID' freq=2457 MHz)
    ioctl[IEEE80211_ioctl>setmlme]: Invalid argument
    Association request to the driver failed
    Associated with ('MAC address of my router')
    WPA: Key negotiation completed with ('MAC address of my router') [PTK=CCMP CTK=TKIP]
    CTRL-EVENT-CONNECTED - Connection to ('MAC address of my router') completed (auth) [id=0 id_str=]
    then a long long long pause until this appeared

    Code:
    WPA: group rekeying completed with ('MAC address of my router') [GTK=TKIP]
    and now I cannot do anything to get the command prompt back. If I ctrl-C, I drop my connection.

    I'm gonna let this ride and see what happens, but unless this process releases, I can't do much command-line wise.

    Thanks,
    JJJ

  2. #2
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    type in:
    Code:
    # wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf &
    The ampersant at the end is crucial to gaining your control back.
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  3. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    84
    Did the trick, though I had to hit enter one more time after it authenticated and appeared to "hang". Thanks Redhead

Similar Threads

  1. Coltrane's Definitive Madwifi Guide
    By peter in forum Tutorials
    Replies: 0
    Last Post: 11-24-2008, 04:15 AM
  2. wpa_supplicant help
    By JoeyJoeJoe in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 08-17-2008, 05:07 PM
  3. Getting madwifi, wpa_supplicant and dhcpd to run at boot time
    By JoeyJoeJoe in forum Linux - Hardware, Networking & Security
    Replies: 8
    Last Post: 07-25-2007, 02:34 AM
  4. madwifi and wpa_supplicant instructions vague
    By JoeyJoeJoe in forum Linux - Hardware, Networking & Security
    Replies: 6
    Last Post: 05-15-2007, 10:23 PM
  5. Madwifi - modprobe errors during 'make install'
    By kk_davey in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 07-06-2005, 06:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •