* [ath9k-devel] How to set ath9k to ap client mode?
@ 2010-11-23 11:02 Stanley Lee
2010-11-24 15:18 ` pat-lkml
0 siblings, 1 reply; 4+ messages in thread
From: Stanley Lee @ 2010-11-23 11:02 UTC (permalink / raw)
To: ath9k-devel
Does anyone can help me and tell me how to set the ath9k to ap client mode?
thanks.
---------------------------
Best Regards
Stanley Lee?im.hsu at msa.hinet.net
2010-11-23
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20101123/4e37c795/attachment.htm
^ permalink raw reply [flat|nested] 4+ messages in thread* [ath9k-devel] How to set ath9k to ap client mode? 2010-11-23 11:02 [ath9k-devel] How to set ath9k to ap client mode? Stanley Lee @ 2010-11-24 15:18 ` pat-lkml 2010-11-25 3:10 ` Stanley Lee 0 siblings, 1 reply; 4+ messages in thread From: pat-lkml @ 2010-11-24 15:18 UTC (permalink / raw) To: ath9k-devel An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20101124/92260040/attachment.htm ^ permalink raw reply [flat|nested] 4+ messages in thread
* [ath9k-devel] How to set ath9k to ap client mode? 2010-11-24 15:18 ` pat-lkml @ 2010-11-25 3:10 ` Stanley Lee 2010-11-26 15:27 ` Pat Erley 0 siblings, 1 reply; 4+ messages in thread From: Stanley Lee @ 2010-11-25 3:10 UTC (permalink / raw) To: ath9k-devel This is my setting laptop --- AP1(ath9k as ap client mode) )))((( AP2 --- Internet ip addr. laptop: 192.168.2.146 AP1(ath9k): 192.168.2.147 AP2: 192.168.2.254 laptop connect to AP1's lan port via RJ-45. the laptop setting as below: ip addr.: 192.168.2.146 subnet mask: 255.255.255.0 default gateway: 192.168.2.254 AP1 as a bridge and connect to AP2. the AP1 setting as below: #ifconfig eth0 0.0.0.0 #ifconfig wlan0 0.0.0.0 #brctl addbr br0 #brctl addif br0 eth0 #brctl addif br0 wlan0 #ifconfig br0 192.168.2.147 netmask 255.255.255.0 #ifconfig br0 up AP1 connect to AP2 as AP Client mode: #iw dev wlan0 connect -w RT-N61 If I ping laptop and AP2 from AP1, I can received responses each other. My question is that when I ping AP1 from laptop, it can work well. but ping AP2 from laptop, it not received a response from AP2. It seems like eth0 can't communicate with wlan0, but I have bridged them on AP1(ath9k). Do I miss some settings on AP1? If anyone have any idea about it, please help me. Thanks. --------------------------- Best Regards Stanley Lee?im.hsu at msa.hinet.net 2010-11-25 ----- Original Message ----- From: pat-lkml To: im.hsu Sent: 2010-11-24, 23:18:08 Subject: Re: [ath9k-devel] How to set ath9k to ap client mode? On 11/23/2010 6:02 AM, Stanley Lee wrote: Does anyone can help me and tell me how to set the ath9k to ap client mode? Do you mean something like bridged client, where the device connects to another access point, making it's local ethernet ports act like they're on the switch connected to the other AP? Pat Erley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20101125/d1ee97e3/attachment.htm ^ permalink raw reply [flat|nested] 4+ messages in thread
* [ath9k-devel] How to set ath9k to ap client mode? 2010-11-25 3:10 ` Stanley Lee @ 2010-11-26 15:27 ` Pat Erley 0 siblings, 0 replies; 4+ messages in thread From: Pat Erley @ 2010-11-26 15:27 UTC (permalink / raw) To: ath9k-devel Ok, my knowledge on this is a little fuzzy, so my technical explanation of the problem may not be 100% accurate, but it does convey what you're running into. When you bridge a client/station interface, there is a problem with the number of available mac addresses in a frame, which causes the response packets to not be routed properly when you ping like this. The ways I've solved this exact situation: 1. I setup AP1 in your case as a separate subnet: 192.168.3.xxx, then use routing rules. This works well enough, with the exception of device discovery. I had my PS3 hooked up wired to AP2, and it could not detect a media server on AP1 due to broadcasts not being on the same subnet. 2. I hacked up the arpnat patch from the Gargoyle Router project to allow bridged client mode (what you're doing now). This allowed me to run 1 big subnet, but it screwed up ipv6 discovery for devices beyond AP1 (dhcp/radvd server was on the other side of AP2). I only have this patch working through 2.6.32 at this point, not tried anything more recent. The router it runs on is ar71xx based, and openwrt defaults to 2.6.32 for this device. Pat Erley On 11/24/10 22:10, Stanley Lee wrote: > This is my setting > > laptop --- AP1(ath9k as ap client mode) )))((( AP2 --- Internet > > ip addr. > laptop: 192.168.2.146 > AP1(ath9k): 192.168.2.147 > AP2: 192.168.2.254 > > > laptop connect to AP1's lan port via RJ-45. the laptop setting as below: > ip addr.: 192.168.2.146 > subnet mask: 255.255.255.0 > default gateway: 192.168.2.254 > > AP1 as a bridge and connect to AP2. the AP1 setting as below: > #ifconfig eth0 0.0.0.0 > #ifconfig wlan0 0.0.0.0 > #brctl addbr br0 > #brctl addif br0 eth0 > #brctl addif br0 wlan0 > #ifconfig br0 192.168.2.147 netmask 255.255.255.0 > #ifconfig br0 up > > AP1 connect to AP2 as AP Client mode: > #iw dev wlan0 connect -w RT-N61 > > > If I ping laptop and AP2 from AP1, I can received responses each other. > My question is that when I ping AP1 from laptop, it can work well. but ping AP2 from laptop, it not received a response from AP2. > It seems like eth0 can't communicate with wlan0, but I have bridged them on AP1(ath9k). > Do I miss some settings on AP1? If anyone have any idea about it, please help me. > > Thanks. > > > > > > --------------------------- > Best Regards > Stanley Lee?im.hsu at msa.hinet.net <mailto:im.hsu@msa.hinet.net> > 2010-11-25 > > ----- Original Message ----- > *From: *pat-lkml <mailto:pat-lkml@erley.org> > *To: *im.hsu <mailto:im.hsu@msa.hinet.net> > *Sent: *2010-11-24, 23:18:08 > *Subject: *Re: [ath9k-devel] How to set ath9k to ap client mode? > > On 11/23/2010 6:02 AM, Stanley Lee wrote: >> >> Does anyone can help me and tell me how to set the ath9k to ap client mode? >> >> > Do you mean something like bridged client, where the device connects to another access point, making it's local ethernet ports act like they're on the switch connected to the other AP? > > Pat Erley > > > > _______________________________________________ > ath9k-devel mailing list > ath9k-devel at lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-26 15:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-11-23 11:02 [ath9k-devel] How to set ath9k to ap client mode? Stanley Lee 2010-11-24 15:18 ` pat-lkml 2010-11-25 3:10 ` Stanley Lee 2010-11-26 15:27 ` Pat Erley
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.