|

楼主 |
发表于 2012-2-13 00:34:18
|
显示全部楼层
按照timemars最后一帖的方法试验了,也不行:
1. 将/etc/conf.d/net和/etc/wpa_supplicant/wpa_supplicant.conf清空
2. 将/etc/NetworkManager/NetworkManager.conf清成只有keyfile
3. 调用/etc/init.d/dbus restart
4. 设置缺省连接
5. 重启
不过按理说:
1. 只要去掉了plugins=ifnet,那么net文件一定不会被读取了,所以是否清空应该是无所谓的。
2. 我的系统没有wpa_supplicant.conf文件,和有空conf文件效果应该一样。
3. NetworkManager.conf和nm-system-settings.conf处理流程应该也没区别。
4. dbus restart和多重启几次应该也没有区别
又详细看了一下,应该是红色的几条log比较关键。nm先识别接口,最后启动wpa-supplicant,这时连接up的全部条件都齐了。
所以wlan0的状态会变成disconnect,下一步就该进入prepare状态开始连接了。
但是中间应该出了错误,所以又从ready变成inactive状态,在nm代码中找到了这几条debug信息,都应该不会带来错误才对。
[color="Red"]Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <info> wpa_supplicant started
Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <info> modem-manager is now available
Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <debug> [1329063733.996382] [nm-supplicant-interface.c:451] interface_add_done(): (wlan0): interface added to supplicant
[color="red"]Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <info> (wlan0): supplicant interface state: starting -> ready
[color="red"]Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <info> (wlan0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <debug> [1329063733.996671] [nm-supplicant-manager.c:162] get_eap_methods_reply(): EAP-FAST is not supported
Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <debug> [1329063733.996716] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 1 flags 0x10049
Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <debug> [1329063733.996726] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 2 flags 0x1082
Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <debug> [1329063733.996732] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 3 flags 0x80
Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <debug> [1329063733.996738] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 4 flags 0x1003
Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <debug> [1329063733.996745] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 5 flags 0x1003
[color="red"]Feb 13 00:22:13 fpemud-workstation NetworkManager[19527]: <info> (wlan0): supplicant interface state: ready -> inactive
Feb 13 00:22:14 fpemud-workstation NetworkManager[19527]: <debug> [1329063734.5154] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 5 flags 0x1003 |
|