DINKIN / tuo

Automatically exported from code.google.com/p/tuo
0 stars 0 forks source link

l2_packet_receive: Network is down #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
首先,必须保证运行hostapd之前接口是up的。

由于在madwifi_init(driver_madwifi.c)中先创建了l2所使用的socket,然
后接口被
配置成down。 
    madwifi_set_iface_flags(drv, 0);    /* mark down during setup */

最后在commit的时候又恢复了up
static int
madwifi_commit(void *priv)
{
    return madwifi_set_iface_flags(priv, 1);
}

fixed by comment the line in madwifi_init(driver_madwifi.c)
    // madwifi_set_iface_flags(drv, 0); /* mark down during setup */

Original issue reported on code.google.com by caojing....@gmail.com on 12 May 2008 at 3:38