主题 : 請問移植wifi的android UI是否產生兩個以上device 复制链接 | 浏览器收藏 | 打印
级别: 圣骑士
UID: 44407
精华: 0
发帖: 386
金钱: 1945 两
威望: 389 点
综合积分: 772 分
注册时间: 2011-04-25
最后登录: 2014-08-25
楼主  发表于: 2012-08-06 13:36

 請問移植wifi的android UI是否產生兩個以上device

如題,如果小弟外接usb hub,接上兩個usb wifi,在命令模式下會產生 兩個device,但是UI同樣會有嗎?
順便問:如果在命令模式下iwlist wlan0 scan可以正常掃描出AP
但是UI,除非下iwlist wlan0 scan,否則UI永不顯示掃描出AP的狀況,如何改善(使用友善提供的wpa_supplicant_6,因為使用wpa_supplicant_5的話,UI會直接顯示error)


查看了<android>/frameworks/base/services/java/com/android/server/WifiService.java 中有

    private static final int MESSAGE_ENABLE_WIFI        = 0;
    private static final int MESSAGE_DISABLE_WIFI       = 1;
    private static final int MESSAGE_STOP_WIFI          = 2;
    private static final int MESSAGE_START_WIFI         = 3;
    private static final int MESSAGE_RELEASE_WAKELOCK   = 4;
    private static final int MESSAGE_UPDATE_STATE       = 5;
    private static final int MESSAGE_START_ACCESS_POINT = 6;
    private static final int MESSAGE_STOP_ACCESS_POINT  = 7;
    private static final int MESSAGE_SET_CHANNELS       = 8;
    private static final int MESSAGE_ENABLE_NETWORKS    = 9;
    private static final int MESSAGE_START_SCAN         = 10;
    private static final int MESSAGE_REPORT_WORKSOURCE  = 11;
    private static final int MESSAGE_ENABLE_RSSI_POLLING = 12;

但是似乎沒有看到實作....
[ 此帖被kazaya在2012-08-06 15:10重新编辑 ]