Google
  Web www.spinics.net

Significant amount of packet loss observed after creating second virtual interface on ath9k

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux Kernel]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]     [Free Dating]     [M2M Wireless]

Add to Google Powered by Linux