From: Chih-Chieh Chou <ccchou@gmail.com>
To: linux-wireless@vger.kernel.org
Subject: Significant amount of packet loss observed after creating second virtual interface on ath9k
Date: Tue, 15 May 2012 13:28:04 -0700 [thread overview]
Message-ID: <CAOcc+SB7Tr_AAAB4aQK_-8MWhKo7NQuap65FLd8omuou6XFctQ@mail.gmail.com> (raw)
Hi All,
I ran into a weird issue that I couldn't find any answers on the
Internet. My aim is to setup a wireless hotspot, sharing my existing
internet connection on the same single wireless interface card. The
following shows the step of doing it.
iw phy phy0 interface add wlan1 type __ap
iw phy phy0 interface add wlan2 type station
ifconfig wlan1 hw ether 52:54:00:11:22:33
ifconfig wlan1 192.168.77.1 netmask 255.255.255.0 up
dnsmasq -C dnsmasq.conf # start dnsmasq
hostapd -d hostapd.conf -B # start hostapd
wpa_supplicant -i wlan2 -c wpa_supplicant.conf -B
echo 1 > /proc/sys/net/ipv4/ip_forward
# NAT rules
iptables --table nat --append POSTROUTING --out-interface new0 -j MASQUERADE
When I use a laptop connecting to the network broadcast by the
hotspot, there's no problem with it. I got an IP address assigned and
can ping the access point, here 192.168.77.1. However, I observed
significant amount of packet loss during pinging (I used ping -t
192.168.77.1). I also found that if I create only one virtual
interface on ath9k, it works pretty well (no packet loss from ping).
If I create one more virtual interface, there's about 10% packet loss
and 40% packet loss right after starting wpa_supplicant. Could anyone
have good insight to this issue?
Thanks and Best Regards,
C.C
reply other threads:[~2012-05-15 20:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOcc+SB7Tr_AAAB4aQK_-8MWhKo7NQuap65FLd8omuou6XFctQ@mail.gmail.com \
--to=ccchou@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).