What!!! I know wpa_supplicant don't support AES encryption method ,so I use wireless tools...... So it seems that I have to use wpa_supplicant and change AES encryption method into TKIP. I feel a little depressed :-( ------------------ 原始邮件 ------------------ 发件人: "Michael Mol"<mike...@gmail.com>; 发送时间: 2011年10月21日(星期五) 晚上10:08 收件人: "gentoo-user"<gentoo-user@lists.gentoo.org>; 主题: Re: [gentoo-user] Why iwconfig wlan0 enc can't work?
On Fri, Oct 21, 2011 at 10:03 AM, Lavender <448463...@qq.com> wrote: > The essid of my dormitory wireless netword is "Rebellion" > and its password is "I'll leave it up to you"(It's OK to tell > you this private information :-) ) . > I typed command below > #iwconfig wlan0 up > #iwconfig wlan0 essid "Rebellion" > Commands above worked normally, then > > #iwconfig wlan0 mode master > > Our AP mode which iwlist shows is master, > but the command above failed. Error message was > "Invalid argument". > Then I typed > #iwconfig wlan0 mode managed > This worked , then > #iwconfig wlan0 enc "I'll leave it up to you" > This failed with error message "Invalid argument" > > I have searched the internet , but I didn't find > useful information . The password is right , it > can work on windows system .So what's wrong > with it? What encryption method is used by the AP? The method you described only kinda works for WEP. If the AP is using WPA or WPA2, you need a WPA supplicant. -- :wq