Issue with Configuring madwifi/Atheros in AP mode on DWL-AG530
Vivek Ramamoorthy <kev.moorthy <at> gmail.com>
2011-09-27 18:34:53 GMT
Hi All,
I have been trying to use a DLINK DWL-AG530 PCI card along with Madwifi to configure the chip in AP mode. Although the client associates fine, I am unable to ping ath0 interface.
I have statically assigned IP to client since I dont have a DHCP server running.
So here are the steps I have followed till now:
1) Downloaded source from
http://madwifi-project.org/ and installed the same on my linux machine. Here are details of my linux version:
[root <at> localhost ~]# uname -a
Linux localhost.localdomain 2.6.27.25-78.2.56.fc9.i686 #1 SMP Thu Jun 18 12:47:50 EDT 2009 i686 i686 i386 GNU/Linux
3) In /etc/modprobe.d/madwifi
alias wlan0 ath_pci
blacklist ath5k
options ath_pci autocreate=ap
4) Since I read in forums that DWL-AG530 comes with a broken country code, I changed the regdomain to 0x0 (also tried with 0x16)
5) modprobe ath_pci countrycode=840
6) wlanconfig ath0 destroy
7) wlanconfig ath0 create wlandev wifi0 wlanmode ap
8) iwpriv ath0 authmode 1 (open mode)
9) iwconfig ath0 essid "test_wlan"
10) ifconfig ath0 10.1.1.10 netmask 255.255.255.0
11) ifconfig ath0 up
An issue I see, is that everytime I try to set the channel using iwconfig ath0 channel 6 (or whatever) the kernel panics and the system goes to hang state, so I leave it at default
I have a windows 7 client, on which i configure a static IP of 10.1.1.12 and connect to wlan "test_wlan". The client associates, and also I was able to sniff the assoc rsp, and ack packets from the air which had a "Success" status.
However, when I ping 10.1.1.10 (ath0), no response. I get a Dest Unreachable from 10.1.1.12. So I added arp entry for 10.1.1.10 manually on my client. When I do that the ICMP request times out, and I do see the ICMP requests in the air.
I have been trying to figure out if the driver is dropping these packets due to some configuration thats wrong? Do let me know if anyone has faced similar issues.
i have tried using bridges between ath0 and eth0 interface, Even that hasnt worked.
Attaching the outputs of ifconfig, iwconfig and dmesg (No errors i saw in dmesg) along.
Also, if anyone has used any of the currently available atheros chipsets along with Madwifi successfully to set up an AP (Master mode), would be great if you could provide me the Chipsets model number, and Madwifi version.. I am fine with any Atheros based Chipset that is available in the market, as long as I can use it with madwifi to setup in AP mode. Just wondering if the DWL-AG530 may be having issues in AP mode, since it works just fine as a wireless client.
Thanks
Vivek
[root <at> localhost ~]# iwconfig ath0
ath0 IEEE 802.11g ESSID:"test_wlan" Nickname:""
Mode:Master Frequency:2.432 GHz Access Point: 00:11:95:87:3B:7E
Bit Rate:0 kb/s Tx-Power:16 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/70 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:329 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[root <at> localhost ~]# ifconfig ath0
ath0 Link encap:Ethernet HWaddr 00:11:95:87:3B:7E
inet addr:10.1.1.10 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:95ff:fe87:3b7e/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:2360 (2.3 KiB)
[root <at> localhost ~]# ifconfig wifi0
wifi0 Link encap:UNSPEC HWaddr 00-11-95-87-3B-7E-F0-2C-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2126 errors:0 dropped:0 overruns:0 frame:26714
TX packets:425 errors:51 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:434964 (424.7 KiB) TX bytes:45655 (44.5 KiB)
Interrupt:18
[root <at> localhost ~]#
[root <at> localhost ~]# iwconfig ath0
ath0 IEEE 802.11g ESSID:"test_wlan" Nickname:""
Mode:Master Frequency:2.432 GHz Access Point: 00:11:95:87:3B:7E
Bit Rate:0 kb/s Tx-Power:16 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/70 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:329 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[root <at> localhost ~]# ifconfig ath0
ath0 Link encap:Ethernet HWaddr 00:11:95:87:3B:7E
inet addr:10.1.1.10 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:95ff:fe87:3b7e/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:2360 (2.3 KiB)
[root <at> localhost ~]# ifconfig wifi0
wifi0 Link encap:UNSPEC HWaddr 00-11-95-87-3B-7E-F0-2C-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2126 errors:0 dropped:0 overruns:0 frame:26714
TX packets:425 errors:51 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:434964 (424.7 KiB) TX bytes:45655 (44.5 KiB)
Interrupt:18
[root <at> localhost ~]#
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Madwifi-users mailing list
Madwifi-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/madwifi-users