OpenSuse Madwifi

From DSO Wiki

Jump to: navigation, search

YaST will now download the package information. When it's done, click on Finish and enter Software Management, then search for madwifi, and you should see a list of packages appear. You need to install madwifi (If it's already installed, right click on it and select Update) and madwifi-kmp-<your kernel flavor>.

To find out which one of the madwifi-kmp-* packages you need, you can open up a terminal and type in

 uname -r

You should now see something like: 2.6.16.21-0.13-<kernel flavor>

Right click on the corresponding madwifi-kmp package and select Install, and click on Accept and wait for the packages to be downloaded and installed.

Open up a terminal window, and just run:

 modprobe ath_pci

and the card should have been detected. Click on the network manager icon in the system tray and configure your wireless network. Assuming that you are running DHCP this should be all you have to do!

Note: in the openSUSE 11.0 may be a conflict with built in module ath5k, which seems is not functional yet, but prevents using madwifi's one. Resolution is to add this module to the blacklist. To do this add the line blacklist ath5k to the file /etc/modprobe.d/blacklist and reboot.

Note: for the ath_pci and ath_hal to work for the AR242x you have to REBOOT!!!! in order to work, which is really new to me in Linux. So remember REBOOT! [edit] Installation using Zypper (Command line)

 zypper -v sa http://madwifi.org/suse/`python -c "import platform;print platform.dist()[1]"` madwifi
 zypper install madwifi madwifi-kmp-`uname -r | awk -F- '{print $3}'`

Open up a terminal window, and just run:

 modprobe ath_pci

and the card should have been detected. Click on the network manager icon in the system tray and configure your wireless network. Assuming that you are running DHCP this should be all you have to do! [edit] Installation using the Smart Package Manager

 smart channel --add madwifi type=rpm-md \
 baseurl=http://madwifi.org/suse/`python -c "import platform;print platform.dist()[1]"`
 smart update madwifi
 smart install madwifi madwifi-kmp-`uname -r | awk -F- '{print $3}'`

Open up a terminal window, and just run:

 modprobe ath_pci

and the card should have been detected. Click on the network manager icon in the system tray and configure your wireless network. Assuming that you are running DHCP this should be all you have to do! [edit] Compile it yourself using the sources

1. Make sure you have installed the kernel-source and the C++ compiler. If not, please install them using YaST.

2. Download the current drivers from this location [1].

3. Unpack the archive in a temporary folder.

4. Open up a terminal window.

4. Switch to the temporary folder, and type in:

 make

5. Now compile it:

 make install

6. You can load the kernel modules using:

 modprobe ath_pci

You can also use the ndiswrapper to install your driver if this doesn't work. [edit] Power Management and madwifi

Add this file to the power management script directory to ensure that wireless works after suspending. In openSUSE 10.3, it's in the /etc/pm/sleep.d directory, and in openSUSE 10.2, it's in the /etc/pm/power, and in openSUSE 11.0, it's in the /etc/pm/sleep.d directory. You can call it 60madwifi. You'll also need to make it executable. It's run by root, so be careful about adding things to it.

  1. !/bin/bash

case $1 in

   hibernate|suspend)
       /sbin/rmmod ath_pci ath_rate_sample ath_hal
       ;;
   thaw|resume)
       /sbin/modprobe ath_hal
       /sbin/modprobe ath_rate_sample
       /sbin/modprobe ath_pci
       ;;
   *)  echo "madwifi power management script called incorrectly."
       ;;

esac [edit] http://en.opensuse.org/Atheros_madwifi

Personal tools