Issue with Configuring madwifi/Atheros in AP mode on DWL-AG530

Vivek Ramamoorthy <[email protected]> Tue, 27 Sep 2011 11:34:53 -0700
Newsgroups gmane.linux.drivers.madwifi.user
Message-ID <CAEC20oBV9GwFDgFOv12X1xVQn9reYT6JkMUc2fbHaC5nmE463w@mail.gmail.com>
--00151747c09a147aea04adf08813
Content-Type: multipart/alternative; boundary=00151747c09a147ae004adf08811

--00151747c09a147ae004adf08811
Content-Type: text/plain; charset=ISO-8859-1

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@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

--00151747c09a147ae004adf08811
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi All,<div><br></div><div>I have been trying to use a DLINK DWL-AG530 PCI =
card along with Madwifi to configure the chip in AP mode. Although the clie=
nt associates fine, I am unable to ping ath0 interface.</div><div>I have st=
atically assigned IP to client since I dont have a DHCP server running.</di=
v>
<div><br></div><div>So here are the steps I have followed till now:</div><d=
iv><br></div><div>1) Downloaded source from=A0<a href=3D"http://madwifi-pro=
ject.org/">http://madwifi-project.org/</a>=A0and installed the same on my l=
inux machine. Here are details of my linux version:</div>
<div><br></div><div><div>[root@localhost ~]# uname -a</div><div>Linux local=
host.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</div></div><div><br></div><div>3) In /etc/mod=
probe.d/madwifi</div>
<div><br></div><div>alias wlan0 ath_pci</div><div>blacklist ath5k</div><div=
>options ath_pci autocreate=3Dap</div><div><br></div><div>4) Since I read i=
n forums that=A0DWL-AG530 comes with a broken country code, I changed the r=
egdomain to 0x0 (also tried with 0x16)</div>
<div>5) modprobe ath_pci countrycode=3D840</div><div>6) wlanconfig ath0 des=
troy</div><div>7) wlanconfig ath0 create wlandev wifi0 wlanmode ap</div><di=
v>8) iwpriv ath0 authmode 1 =A0 (open mode)</div><div>9) iwconfig ath0 essi=
d &quot;test_wlan&quot;</div>
<div>10) ifconfig ath0 10.1.1.10 netmask 255.255.255.0</div><div>11) ifconf=
ig ath0 up</div><div><br></div><div><b><font class=3D"Apple-style-span" col=
or=3D"#ff6666">An issue I see, is that everytime I try to set the channel u=
sing iwconfig ath0 channel 6 (or whatever) the kernel panics and the system=
 goes to hang state, so I leave it at default</font></b></div>
<div><br></div><div>I have a windows 7 client, on which i configure a stati=
c IP of 10.1.1.12 and connect to wlan &quot;test_wlan&quot;. The client ass=
ociates, and also I was able to sniff the assoc rsp, and ack packets from t=
he air which had a &quot;Success&quot; status.</div>
<div><br></div><div>However, when I ping 10.1.1.10 (ath0), no response. I g=
et a Dest Unreachable from 10.1.1.12. So I added arp entry for 10.1.1.10 ma=
nually on my client. When I do that the ICMP request times out, and I do se=
e the ICMP requests in the air.</div>
<div><br></div><div>I have been trying to figure out if the driver is dropp=
ing these packets due to some configuration thats wrong? Do let me know if =
anyone has faced similar issues.</div><div>i have tried using bridges betwe=
en ath0 and eth0 interface, Even that hasnt worked.</div>
<div><br></div><div>Attaching the outputs of ifconfig, iwconfig and dmesg (=
No errors i saw in dmesg) along.=A0</div><div><br></div><div>Also, if anyon=
e has used any of the currently available atheros chipsets along with Madwi=
fi 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=A0DWL-AG530=
 may be having issues in AP mode, since it works just fine as a wireless cl=
ient.</div>
<div><br></div><div>Thanks</div><div>Vivek</div><div><br></div><div><br></d=
iv>

--00151747c09a147ae004adf08811--
--00151747c09a147aea04adf08813
Content-Type: text/plain; charset=US-ASCII; name="iwconfig-ifconfig.txt"
Content-Disposition: attachment; filename="iwconfig-ifconfig.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gt380gh70

W3Jvb3RAbG9jYWxob3N0IH5dIyBpd2NvbmZpZyBhdGgwDQphdGgwICAgICAgSUVFRSA4MDIuMTFn
ICBFU1NJRDoidGV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wZWQ6MCBvdmVycnVuczowIGZyYW1lOjANCiAgICAg
ICAgICBUWCBwYWNrZXRzOjEwIGVycm9yczowIGRyb3BwZWQ6MCBvdmVycnVuczowIGNhcnJpZXI6
MA0KICAgICAgICAgIGNvbGxpc2lvbnM6MCB0eHF1ZXVlbGVuOjAgDQogICAgICAgICAgUlggYnl0
ZXM6MCAoMC4wIGIpICBUWCBieXRlczoyMzYwICgyLjMgS2lCKQ0KDQpbcm9vdEBsb2NhbGhvc3Qg
fl0jIGlmY29uZmlnIHdpZmkwDQp3aWZpMCAgICAgTGluayBlbmNhcDpVTlNQRUMgIEhXYWRkciAw
MC0xMS05NS04Ny0zQi03RS1GMC0yQy0wMC0wMC0wMC0wMC0wMC0wMC0wMC0wMCAgDQogICAgICAg
ICAgVVAgQlJPQURDQVNUIFJVTk5JTkcgTVVMVElDQVNUICBNVFU6MTUwMCAgTWV0cmljOjENCiAg
ICAgICAgICBSWCBwYWNrZXRzOjIxMjYgZXJyb3JzOjAgZHJvcHBlZDowIG92ZXJydW5zOjAgZnJh
bWU6MjY3MTQNCiAgICAgICAgICBUWCBwYWNrZXRzOjQyNSBlcnJvcnM6NTEgZHJvcHBlZDowIG92
ZXJydW5zOjAgY2FycmllcjowDQogICAgICAgICAgY29sbGlzaW9uczowIHR4cXVldWVsZW46MTk5
IA0KICAgICAgICAgIFJYIGJ5dGVzOjQzNDk2NCAoNDI0LjcgS2lCKSAgVFggYnl0ZXM6NDU2NTUg
KDQ0LjUgS2lCKQ0KICAgICAgICAgIEludGVycnVwdDoxOCANCg0KW3Jvb3RAbG9jYWxob3N0IH5d
IyANCg==
--00151747c09a147aea04adf08813
Content-Type: text/plain; charset=US-ASCII; name="iwconfig-ifconfig.txt"
Content-Disposition: attachment; filename="iwconfig-ifconfig.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gt380lfc1

W3Jvb3RAbG9jYWxob3N0IH5dIyBpd2NvbmZpZyBhdGgwDQphdGgwICAgICAgSUVFRSA4MD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2V0czowIGVycm9yczowIGRyb3BwZWQ6MCBvdmVycnVuczowIGZyYW1lOjANCiAgICAg
ICAgICBUWCBwYWNrZXRzOjEwIGVycm9yczowIGRyb3BwZWQ6MCBvdmVycnVuczowIGNhcnJpZXI6
MA0KICAgICAgICAgIGNvbGxpc2lvbnM6MCB0eHF1ZXVlbGVuOjAgDQogICAgICAgICAgUlggYnl0
ZXM6MCAoMC4wIGIpICBUWCBieXRlczoyMzYwICgyLjMgS2lCKQ0KDQpbcm9vdEBsb2NhbGhvc3Qg
fl0jIGlmY29uZmlnIHdpZmkwDQp3aWZpMCAgICAgTGluayBlbmNhcDpVTlNQRUMgIEhXYWRkciAw
MC0xMS05NS04Ny0zQi03RS1GMC0yQy0wMC0wMC0wMC0wMC0wMC0wMC0wMC0wMCAgDQogICAgICAg
ICAgVVAgQlJPQURDQVNUIFJVTk5JTkcgTVVMVElDQVNUICBNVFU6MTUwMCAgTWV0cmljOjENCiAg
ICAgICAgICBSWCBwYWNrZXRzOjIxMjYgZXJyb3JzOjAgZHJvcHBlZDowIG92ZXJydW5zOjAgZnJh
bWU6MjY3MTQNCiAgICAgICAgICBUWCBwYWNrZXRzOjQyNSBlcnJvcnM6NTEgZHJvcHBlZDowIG92
ZXJydW5zOjAgY2FycmllcjowDQogICAgICAgICAgY29sbGlzaW9uczowIHR4cXVldWVsZW46MTk5
IA0KICAgICAgICAgIFJYIGJ5dGVzOjQzNDk2NCAoNDI0LjcgS2lCKSAgVFggYnl0ZXM6NDU2NTUg
KDQ0LjUgS2lCKQ0KICAgICAgICAgIEludGVycnVwdDoxOCANCg0KW3Jvb3RAbG9jYWxob3N0IH5d
IyANCg==
--00151747c09a147aea04adf08813
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
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
--00151747c09a147aea04adf08813
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Madwifi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-users

--00151747c09a147aea04adf08813--