ath6kl:接口不适用于AP模式

时间:2013-08-07 17:29:15

标签: android wlan tethering

我的Android 4.2.2设备上有AR6003芯片。我最近切换到开源ath6kl驱动程序,但我有问题获得访问点运行。实际上,我可以,但以一种奇怪的方式。

我正在使用:

  • hostapd v2.0-devel-4.2.2
  • wpa_supplicant v2.0-devel-4.2.2

这是我在init.rc中运行hostapd服务的方式:

   mkdir /data/misc/wifi/hostapd 0770 wifi wifi
   chmod 0660 /data/misc/wifi/hostapd.conf

service hostapd /system/bin/hostapd -dd /data/misc/wifi/hostapd.conf
    class main
    socket hostapd_wlan0 dgram 660 root wifi
    user root
    group wifi
    oneshot
    disabled

Hostapd.conf文件:

interface=wlan0
driver=nl80211
ctrl_interface=/data/misc/wifi/hostapd
ssid=AndroidAP
channel=6
ieee80211n=1

当我在Android UI中启用Wi-Fi网络共享选项时,会选中该复选框,但是没有显示有关活动链路的通知,并且AP模式不起作用。 这是Android报告的内容:https://gist.github.com/TheWhisp/6176213

当AP模式处于“半工作”状态时,通过adb shell我手动启动hostapd(具有su权限):

hostapd -dd /data/misc/wifi/hostapd.conf

然后AP模式正常工作。当我禁用它并重新启用它时,它会给出wlan0已经使用并失败的错误。

知道为什么会这样吗?谢谢;)

0 个答案:

没有答案