#1587: Samsung R20 Atheros AR5006X patch
---------------------------------+------------------------------------------
Reporter: anonymous | Owner:
Type: enhancement | Status: new
Priority: trivial | Milestone:
Component: madwifi: other | Version: trunk
Resolution: | Keywords: samsung r20 pci id
Patch_attached: 1 |
---------------------------------+------------------------------------------
Comment (by anonymous):
From The Legendary Ganz
I had this problem too. I went out and brought another mini-pci express
card to find out if it was the card that was a problem – it wasn’t!
I originally had an Atheros AR5006EX mini-pci express card inside my
Samsung R20 Laptop but as I had the same problem as you had: the ath_pci
modules loading but no wireless extensions, I brought a gigabyte Wl01GT
that had a atheros AR5005GS chip in it, as I had read this worked in
forums. The AR5005GS being older than my 6th Generation AR5006EX I
thought linux would pick it up, it didn’t at first but I got it to work
eventually. This was how I did it…
Downloaded the Madwifi-ng (current) tar and copied into /usr/src
directory. I made sure my kernel source of 2.6.22 for my Mandriva OS was
also installed in the /usr/src; if you are using this kernel version on a
new laptop make sure you enable the SATA parameters in the kernel config
when you make menuconfig.
Un-tarred the madwifi source using the tar command (Tar xzvf madwifi-
ng...'. You may have to use xjf if its a bz2 tar)and it created a folder
called madwifi-ng-r2726-20071006.
I cd into the new madwifi folder using a terminal as root user and typed
in the following command:
make KERNELPATH=/usr/src/linux-2.6.22 MODULEPATH=/lib/modules/kernel/net
Make sure you leave a space between make and KERNELPATH, linux-2.6.22 and
MODULEPATH.
Then I typed in the following command: make install
KERNELPATH=/usr/src/linux-2.6.22 MODULEPATH=/lib/modules/kernel/net
I then typed in modprobe ath_pci then typed in lsmod to check that the
modules had loaded. For me they were showing up as: ath_pci, wlan and
ath_hal.
I then created a file called ifcfg-ath0 in /etc/sysconfig/network-scripts
(its where you will find the ifcfg-eth0 that's in a folder called network-
scripts (use the find program to find ifcfg-eth0) then save the file as
ifcfg-ath0 (in the /etc/sysconfig/network-scripts folder and edit the
contents of the file to make sure you have
device=ath0
bootproto=dhcp
unboot=no
metric=50
DHCP_client=dhclient.
However, even though the modules had loaded when I used iwconfig I was
just getting lo no wireless extension, eth0 no wireless extensions. Now
having got this result on both the AR5006EX and the AR5005GS atheros
mini-cpi express cards in my Samsung R20 I knew it had to be the mini-pci
controller on the motherboard that was causing the problem not the card.
After googllng around I found on the Madwifi site that I had to add a
patch to one of the ath files in the madwifi folder I had created when un-
tarring the source file. Go into the madwifi-ng-r2726-20071006 and into
the Ath directory. In the ath folder look for a file called if_ath_pci.c
and add the line at the bottom of this list:
{0x0001, 0x001c, PCI_ANY_ID, PCI_ANY_ID}, /* Samsung R20 */
{0}
After this I had to go back into the madwifi folder and run “make clean”.
I then used the
make KERNELPATH=/usr/src/linux-2.6.22 MODULEPATH=/lib/modules/kernel/net
make install KERNELPATH=/usr/src/linux-2.6.22
MODULEPATH=/lib/modules/kernel/net again and modprobe ath_pci.
I modprobe ath_pci and this time I noticed that the installed modules show
up like this:
ath_pci 114920 0
wlan 210992 5 wlan_wep, wlan_scan_sta, ath_rate_sample,ath_pci
ath_hal 234656 3 ath_rate_sample, ath_pci
Don't forget to go into Control center and setup your wireless network.
When rebooting sometimes my ath network interface does not load so simply
do a modprobe ath_pci and then iwconfig and ifconfg after to make sure
that wifi0 (the virtual wireless interface is ‘UP’.
It’s interesting but I’ve noticed that I can create many virtual wireless
interfaces using the ‘wlanconfig ath1 create wlandev wifi0 wlanmode sta’
this will then create a ‘ath1’ interface as well as my ath0. Presumably
one can set up these virtual interfaces to be in monitor, managed or ad
hoc point. When creating a new wireless network in the control center you
will notice your new virtual interfaces to select from.
Now I am able to connect to access points. Also airodump works. For
using airodump I do this: first make sure my atheros modules are
installed: modprobe ath_pci. I do all this as root in a terminal. I then
type airomon-ng stop ath. I follow this with airomon-ng start wifi0, this
will put the atheros card in monitor mode. I then type airodump-ng ath0.
To check whether your card can inject packets first run a sniffing program
such as Wireshark, set it to sniff data, open a terminal as root and use
arieplay-ng (deauth a fake ap mac address). If your card can inject you
shoule see wireshark pick up the deauth requests.
This worked for me but may not work for other systems. Also I noticed
that I am getting a stronger wifi signal in Mandriva than in Windows XP (I
have windows and the Samsung recovery on partition sada1(hd0,0) & sada2
(hd0,1), Mandriva Spring 2007 on sda5(hd0,4), 6 (swap) and 7(homehd0,6),
Backtrack2 on sda4 (hd0,3) and a spare partition on sda8!.
Hope someone finds this helps as this was a problem I had lived with for
the last two months!!
--
Ticket URL: <http://madwifi.org/ticket/1587#comment:2>
madwifi.org <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets