Page 1 of 18 12311 ... LastLast
Results 1 to 10 of 654

Thread: HOWTO: ipw2200 + wpa

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Beans
    514

    HOWTO: ipw2200 + wpa

    PLEASE, PAY ATTENTION: This HowTo was intended for Hoary. If you are running a higher version of Ubuntu, please take a look here: http://www.ubuntuforums.org/showthread.php?t=263136



    Hi!
    I've seen there are many requests about how to get ipw2200 and wpa to work. So, as I've managed to get them to work, I've decided to write a howto. It's also good if you just want to get ipw2200 without wpa; just follow the first part in this case.

    We have to compile and install the latest ipw2200 1.0.6 driver from http://ipw2200.sourceforge.net and we also have to install the firmware, as the ipw2200 0.19 included in the standard installation of Hoary doesn't support wpa.

    Since ipw2200 1.0.5, ipw2200 project does not include ieee80211 subsystem anymore, so we also have to compile and install them from http://ieee80211.sourceforge.net.

    Since we have to compile the driver from sources, we need the packages: build-essential, gcc, linux-headers-myOwnKernelVersion.
    So:
    Code:
    sudo apt-get update
    sudo apt-get install build-essential
    sudo apt-get install gcc
    sudo apt-get install linux-headers-$(uname -r)
    Note: if you have the kernel sources installed, you won't need the linux-headers. And if you're running a custom kernel compiled by you, you won't need to install the packages mentioned above.

    First of all, follow these instructions to add extra repositories, which are always handy to have.

    Here are the steps (for newbies: the following commands are supposed to be typed in the same console session):

    First of all, download the firmware from here.
    Then install it:
    Code:
    sudo tar xvzf ipw2200-fw-2.3.tgz
    sudo cp ipw-2.3-*.fw /usr/lib/hotplug/firmware/
    Now download the latest ieee80211 subsystem from here.
    Then untar it and change your current directory into the driver's one:
    Code:
    sudo tar xvzf ieee80211-1.0.3.tgz
    cd ieee80211-1.0.3
    Now run the remove-old.sh script that comes with the driver package in order to make sure that any old module is deleted:
    Code:
    sudo sh remove-old
    Now download the latest ipw22000 driver from here.
    Then untar it and change your current directory into the driver's one:
    Code:
    cd ..
    sudo tar xvzf ipw2200-1.0.6.tgz
    cd ipw2200-1.0.6
    Now run the remove-old.sh script that comes with the driver package in order to make sure that any old module is deleted:
    Code:
    sudo sh remove-old
    Now your system is clean and it's time to make and install ieee80211, so:
    Code:
    cd ..
    cd ieee80211-1.0.3
    make
    sudo make install
    Then make and install ipw2200 as well:
    Code:
    cd ..
    cd ipw2200-1.0.6
    make
    sudo make install
    Note: it seems there's currently a bug of remove-old script on some systems; if you get errors when compiling ieee80211 about the presence of old modules, you'll have to delete them manually, after having unloded all ieee80211* modules through "modprobe -r module_name" (type "lsmod" to see the current loaded modules).


    Now we have to download and install the wpa_supplicant package:
    Code:
    sudo apt-get install wpasupplicant
    Then you have to create a wpa_supplicant.conf in /etc, so:
    Code:
    sudo gedit /etc/wpa_supplicant.conf
    And paste the following lines in the text editor:
    Code:
    ctrl_interface=/var/run/wpa_supplicant
    
    network={
           ssid="your_network_name"
           scan_ssid=1
           proto=WPA
           key_mgmt=WPA-PSK
           psk="your_secret_key"
    }
    Anyway there are further configuration examples in /usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.gz.

    Then reboot to make sure that the new modules are loaded successfully and type:
    Code:
    dmesg | grep ipw
    to see if there are errors.
    Then type the following command to configurate wpa_supplicant:
    Code:
    sudo wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant.conf -D ipw -w -dd
    Note: "eth1" is your wireless device.
    If you get troubles establishing the connection with the AP, try to take the "-w" flag out.

    Some systems may have problems in finding the AP; so, if you get troubles finding your AP, add the "ap_scan=2" option to let wpa_supplicant performing the scan instead of the wireless card driver. So your /etc/wpa_supplicant.conf will look like the following:
    Code:
    ctrl_interface=/var/run/wpa_supplicant
    ap_scan=2
    
    network={
           ssid="your_network_name"
           scan_ssid=1
           proto=WPA
           key_mgmt=WPA-PSK
           psk="your_secret_key"
    }
    Some systems may have problems in connecting to the AP; if you get this issue, try to add the directive "pairwise=TKIP" in the relative network section of /etc/wpa_supplicant.conf, so that it looks like this:
    Code:
    ctrl_interface=/var/run/wpa_supplicant
    
    network={
           ssid="your_network_name"
           scan_ssid=1
           proto=WPA
           key_mgmt=WPA-PSK
           pairwise=TKIP
           psk="your_secret_key"
    }
    Of course, if you have problems both findind the AP and connecting to it, you have to add both "ap_scan=2" and "pairwise=TKIP", like the following:
    Code:
    ctrl_interface=/var/run/wpa_supplicant
    ap_scan=2
    
    network={
           ssid="your_network_name"
           scan_ssid=1
           proto=WPA
           key_mgmt=WPA-PSK
           pairwise=TKIP
           psk="your_secret_key"
    }
    Now we have to create a small script (first provided by fulco and edited by me) in order to get wpa starting automatically at boot:
    Code:
    sudo gedit /etc/init.d/wifi_wpa.sh
    Here's the script:
    Code:
    #! /bin/sh
    # wifi: wpa_supplicant init
    echo " * [Wifi]: Enabling WPA supplicant..."
    if [ -x /usr/sbin/wpa_supplicant ]; then
        /usr/sbin/wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant.conf -D ipw -w
    fi
    
    exit 0
    Change the script's permissions to allow it to be executed:
    Code:
    sudo chmod +x /etc/init.d/wifi_wpa.sh
    And create a symlink to define the relative service:
    Code:
    sudo ln -s /etc/init.d/wifi_wpa.sh /etc/rcS.d/S40netwifiwpa
    Ok, that's all!
    I hope this howto will be helpful.
    Last edited by luca_linux; September 24th, 2006 at 10:57 AM.

  2. #2
    Join Date
    Jan 2005
    Location
    Firenze, Italy
    Beans
    279

    Re: HOWTO: ipw2200 + wpa

    Thanks for this!

    Regards,
    MC
    Do not destroy what you cannot create. - Leo Szilard

  3. #3
    Join Date
    Apr 2005
    Location
    Basingstoke, UK
    Beans
    82

    Re: HOWTO: ipw2200 + wpa

    i dont have wpa on my home network - will Hoary work out of the box so with the ipw2200 card in my Compaq Nx9030 laptop?

  4. #4
    Join Date
    Apr 2005
    Beans
    514

    Re: HOWTO: ipw2200 + wpa

    If you don't need wpa support, you won't need to install wpa_supplicant.
    Anyway you had better install the latest driver and firmware from ipw2200.sourceforge.net...so just follow the howto without the latest part concerning wpa_supplicant.

  5. #5
    Join Date
    Apr 2005
    Location
    Basingstoke, UK
    Beans
    82

    Re: HOWTO: ipw2200 + wpa

    i'm not sure if one should do that , unless you really know what you are doing, as that makes your system slightly non-Ubuntu (you've gone out of the apt-get/synaptic way of doing things), and will make your system slightly non-standard (unless you really really need wpa support).

    so , the ipw2200 works without wpa , if you just install/upgrade to Hoary?

  6. #6
    Join Date
    Jan 2005
    Beans
    3

    Re: HOWTO: ipw2200 + wpa

    hi i have gotten ipw2200 to work without installing any other packages. This was successful in the Beta Array 4 install CD , and now the live Ubuntu 5.04 version.

    I have a Compaq Presario 2200 series with 2200BG centrino wlan.
    this is what u do, in sudo / root mode,

    Step 1
    # iwconfig
    -- u should see that u have IEEE802.11(B/G) under eth1 (or some other)

    Step 2
    # iwlist eth1 scan
    -- this will scan for all available networks.
    -- if there is something picked up, it means ubuntu is able to detect a network.
    -- if nothing is detected, pls check your router.

    Step 2a: if your wlan network is protected
    # iwconfig eth1 essid YOURSSID
    -- to define your SSID (access point name)
    # iwconfig eth1 key xxxxxxxxxx
    -- to define your WEP key, if any.

    Step 3
    # dhclient eth1
    -- this will request a IP from your router, if successfull u will see some messages ending with " bound to 192.168.x.x..."
    -- u are connected to the internet !

    hope this helps some of the newbies.

  7. #7
    Join Date
    Apr 2005
    Beans
    90

    Re: HOWTO: ipw2200 + wpa

    Quote Originally Posted by luca_linux
    Hi!
    I've seen there are many requests about how to get ipw2200 and wpa working. So, as I've managed to get them to work, I've decided to write a howto.

    We have to compile and install the latest ipw2200 1.0.3 driver from ipw2200.sourceforge.net and we also have to install the firmware, as the ipw2200 0.19 included in the standard installation of hoarty doesn't support wpa.
    Here are the steps:
    First of all, download the firmware from here.
    Then install it:
    Code:
    sudo tar xvzf ipw2200-fw-2.2.tgz
    sudo cp ipw-2.2-*.fw /usr/lib/hotplug/firmware/
    Now download the latest driver from here.
    Then install it:
    Code:
    sudo tar xvzf ipw2200-1.0.3.tgz
    cd ipw2200-1.0.3
    make
    sudo make install
    Then you have to copy all the modules it installs from /lib/modules/$(KVER)/drivers/net/wireless/ to /lib/modules/$(KVER)/kernel/drivers/net/wireless/ and /lib/modules/$(KVER)/drivers/net/wireless/ipw2200.ko to /lib/modules/$(KVER)/kernel/drivers/net/wireless/ipw2200/, since there's currently a bug in their location: in fact ipw2200 installs its modules in the first directory, while Ubuntu loads them from the second directory.

    Now we have to download and install the wpa_supplicant package:
    Code:
    sudo apt-get install wpasupplicant
    Then you have to create a wpa_supplicant.conf in /etc, so:
    Code:
    sudo gedit /etc/wpa_supplicant.conf
    And paste the following lines in the text editor:
    Code:
    network={
           ssid="your_network_name"
           proto=WPA
           scan_ssid=1
           key_mgmt=WPA-PSK
           psk="your_secret_key"
    }
    Anyway there are further configuration examples in /usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf.gz.

    Then reboot to make sure that the new modules are loaded successfully and type:
    Code:
    dmesg | grep ipw
    to see if there are errors.
    Then type the following command to configurate wpa_supplicant:
    Code:
    sudo wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant.conf -D ipw -w -dd
    Note: "eth1" is your wireless device.

    Ok, that's all!
    I hope this howto will be helpful.
    * additional settings*
    edit /etc/default/wpasupplicant to activate the wpasupplicant during boot.

    Here I attatched my configuration file :
    # /etc/default/wpasupplicant

    # WARNING! Make sure you have a configuration file!

    ENABLED=1

    # Useful flags:
    # -D <driver> Wireless Driver
    # -i <ifname> Interface (required, unless specified in config)
    # -c <config file> Configuration file
    # -d Debugging (-dd for more)
    # -w Wait for interface to come up

    OPTIONS="-w -D madwifi -i ath0 -c /etc/wpa_supplicant.conf -dd"
    Although the wpasupllicant can be run automatically during boot, I still have to reactivate the wireless card in the network configuration. Can anyone help?

    Thanks

  8. #8
    Join Date
    Mar 2005
    Location
    Vilnius, Lithuania
    Beans
    15
    Distro
    Ubuntu 6.06

    Re: HOWTO: ipw2200 + wpa

    Please look few posts higher there is links to other Tutorial IPW2200 + WPA with startup script.

  9. #9
    Join Date
    Apr 2005
    Location
    Kuwait
    Beans
    12

    Re: HOWTO: ipw2200 + wpa

    Thanks for the HOWTO luca_linux. However I'm having the same problem as meesmany. I have an IBM ThinkPad T41 with an ipw2100. I downloaded the latest firmware and source for ipw2100. Copied the firmware to the right folder, compiled the drivers and copied them to the right folder. Installed and configured wpasupplicant.conf just like you mentioned with my own essid and psk ofcourse but I can't get my card to associate with my LinkSys WAG54G ap. Here is the output from some commands:

    Code:
    firas@ibm-t41:~$ dmesg | grep ipw2100
    ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, 1.1.0
    ipw2100: Copyright(c) 2003-2004 Intel Corporation
    ipw2100: Detected Intel PRO/Wireless 2100 Network Connection
    
    firas@ibm-t41:~$ sudo wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant.conf -D ipw -w -dd
    Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    Line: 1 - start of a new network block
    ssid - hexdump_ascii(len=11):
         61 6c 72 61 67 6f 6d 2d 6e 65 74                  my-essid
    proto: 0x1
    scan_ssid=1 (0x1)
    key_mgmt: 0x2
    PSK (ASCII passphrase) - hexdump_ascii(len=15): [REMOVED]
    PSK (from passphrase) - hexdump(len=32): [REMOVED]
    Priority group 0
       id=0 ssid='my-essid'
    Daemonize..
    
    firas@ibm-t41:~$ iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    sit0      no wireless extensions.
    
    eth1      unassociated  ESSID:off/any  Nickname:"ipw2100"
              Mode:Managed  Channel=0  Access Point: 00:00:00:00:00:00
              Bit Rate=0 kb/s   Tx-Power:off
              Retry:on   RTS thr:off   Fragment thr:off
              Power Management:off
              Link Quality:0  Signal level:0  Noise level:0
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
    I even tried setting my essid manually using iwconfig eth1 essid my-essid to no avail. I disabled WPA on my AP and was able to connect just fine using iwconfig.

    Can anyone shed any light on this problem ? I'm really getting desperate here, I've spent days on this with no luck.

    And a little off topic here. How can I disable IPv6 on my laptop (the sit0 interface) permanently ?

  10. #10
    Join Date
    Jun 2005
    Beans
    1

    Angry Re: HOWTO: ipw2200 + wpa

    Quote Originally Posted by firas
    Thanks for the HOWTO luca_linux. However I'm having the same problem as meesmany. I have an IBM ThinkPad T41 with an ipw2100. I downloaded the latest firmware and source for ipw2100. Copied the firmware to the right folder, compiled the drivers and copied them to the right folder. Installed and configured wpasupplicant.conf just like you mentioned with my own essid and psk ofcourse but I can't get my card to associate with my LinkSys WAG54G ap. Here is the output from some commands:

    Code:
    firas@ibm-t41:~$ dmesg | grep ipw2100
    ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, 1.1.0
    ipw2100: Copyright(c) 2003-2004 Intel Corporation
    ipw2100: Detected Intel PRO/Wireless 2100 Network Connection
    
    firas@ibm-t41:~$ sudo wpa_supplicant -B -i eth1 -c /etc/wpa_supplicant.conf -D ipw -w -dd
    Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    Line: 1 - start of a new network block
    ssid - hexdump_ascii(len=11):
         61 6c 72 61 67 6f 6d 2d 6e 65 74                  my-essid
    proto: 0x1
    scan_ssid=1 (0x1)
    key_mgmt: 0x2
    PSK (ASCII passphrase) - hexdump_ascii(len=15): [REMOVED]
    PSK (from passphrase) - hexdump(len=32): [REMOVED]
    Priority group 0
       id=0 ssid='my-essid'
    Daemonize..
    
    firas@ibm-t41:~$ iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    sit0      no wireless extensions.
    
    eth1      unassociated  ESSID:off/any  Nickname:"ipw2100"
              Mode:Managed  Channel=0  Access Point: 00:00:00:00:00:00
              Bit Rate=0 kb/s   Tx-Power:off
              Retry:on   RTS thr:off   Fragment thr:off
              Power Management:off
              Link Quality:0  Signal level:0  Noise level:0
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
    I even tried setting my essid manually using iwconfig eth1 essid my-essid to no avail. I disabled WPA on my AP and was able to connect just fine using iwconfig.

    Can anyone shed any light on this problem ? I'm really getting desperate here, I've spent days on this with no luck.

    And a little off topic here. How can I disable IPv6 on my laptop (the sit0 interface) permanently ?
    I have the same problem as firas, don't get any error message but wpa doesn't wan't to work. Without encryption i get a connectin to my router.

    I updated to the latest driver and firmware. No improvement.

    What looks strange to me is that sudo wpa_cli status returns the following

    Code:
    Selected interface 'eth1'
    bssid=00:00:00:00:00:00
    pairwise_cipher=UNKNOWN
    group_cipher=UNKNOWN
    key_mgmt=UNKNOWN
    wpa_state=SCANNING
    Supplicant PAE state=DISCONNECTED
    
    suppPortStatus=Unauthorized
    EAP state=DISABLED
    Why does it complain key_mgmt=UNKNOWN. It is set to key_mgmt=WPA-PSK in /etc/wpa_supplicant.conf and manually starting wpa returns: key_mgmt: 0x2 analog to firas post.

    I am now trying to build a vanilla kernel from kernel.org and install ipw2100 again. At the moment i am getting mad. I checked every config i know several times. No errors in the log and i know the wpz_supplicant.conf hast to work, as it did in gentoo, before i switched to ubuntu. My stomache realy hurts cause of waisting time with this @#%^&*( network encryption.

    I additionaly found this Bugreport, but without a solution:

    https://bugzilla.ubuntu.com/show_bug.cgi?id=9970


    Hope firas or anyoneelse solved the problem with 2100 and can give me a hint.

Page 1 of 18 12311 ... LastLast

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
  •