LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2011, 09:53 AM   #1
cslucsm
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Rep: Reputation: 0
Invalid argument with iwconfig command


Hello

I am a newbie. I am trying to connect to a wireless network. I got a problem with network manager. So I try to connect manually

I found wireless network around by using "iwlist scan" command.

I want to connect to a network with ESSID "MCC(Mandalay)" and Key "mdymcctraining"

Here is my problem The output of "iwconfig" command is
Code:
root@ubuntu:~# iwconfig wlan0 essid MCC\(Mandalay\) key mdymcctraining
Error for wireless request "Set Encode" (8B2A) :
    invalid argument "mdymcctraining".
What does it mean "invalid argument"?
It means that my wireless pre-sharedkey is not correct?
I am sure the key is valid. It is used by any others with window 7.
Please Help Me.
 
Old 01-31-2011, 11:19 AM   #2
lcamp
LQ Newbie
 
Registered: Jan 2011
Posts: 8

Rep: Reputation: 2
the key argument in iwconfig applies only for WEP based security for wireless networks. You're using WPA(2) so you have to use wpa_supplicant.

Last edited by lcamp; 02-01-2011 at 03:01 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command failed: device-mapper: reload ioctl failed: Invalid argument azza Programming 2 01-10-2011 03:16 AM
command failed:Invalid argument azza Programming 2 07-26-2009 07:12 AM
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM
cryptsetup error (Command failed: Invalid argument) SlackN00b Slackware 5 02-07-2007 12:59 PM
cryptsetup - command failed: invalid argument Captain Harlock Debian 2 05-09-2006 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration