LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-18-2007, 07:17 PM   #1
darkangel29
Member
 
Registered: Nov 2004
Location: Puerto Rico
Distribution: Ubuntu 10.04
Posts: 121

Rep: Reputation: 15
wpa with ndiswrapper?


I have a new AP with a wpa password at my home, this is the first time I try the wireless in linux. I manage to install the drivers with ndiswrapper after trying the all day. My wifi card is a broadcom bcm4311. I need help configuring ndiswrapper to use wpa. I now and already install wpa_suplicant but I dont know where to begging. Can anybody walk me through the process and later saving the connection so it boot up automatically. Thanks a lot!!

Last edited by darkangel29; 02-18-2007 at 07:20 PM.
 
Old 02-19-2007, 06:43 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Take a look at the wpa_supplicant section on my help site. It goes through how to configure the wpa_supplicant.conf file and how to start it with ndiswrapper.
 
Old 02-19-2007, 11:17 AM   #3
darkangel29
Member
 
Registered: Nov 2004
Location: Puerto Rico
Distribution: Ubuntu 10.04
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for the help
 
Old 02-19-2007, 02:27 PM   #4
darkangel29
Member
 
Registered: Nov 2004
Location: Puerto Rico
Distribution: Ubuntu 10.04
Posts: 121

Original Poster
Rep: Reputation: 15
Still I can't connect. I try this I put this in the /etc/conf.d/net:
Code:
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=("dhcp")
# Prefer wpa_supplicant over wireless-tools
modules=( "wpa_supplicant" )

# It's important that we tell wpa_supplicant which driver we should
# be using as it's not very good at guessing yet
wpa_supplicant_wlan0="-ndiswrapper"
And this in /etc/wpa_supplicant/wpa_supplican.conf:
Code:
#Driver interface for Host AP driver
CONFIG_DRIVER_HOSTAP=y
# Driver interface for ndiswrapper
CONFIG_DRIVER_NDISWRAPPER=y
# Driver interface for generic Linux wireless extensions
CONFIG_DRIVER_WEXT=y
# Driver interface for wired Ethernet drivers
CONFIG_DRIVER_WIRED=y
# The below line not be changed otherwise we refuse to work
ctrl_interface=/var/run/wpa_supplicant

# Ensure that only root can read the WPA configuration
ctrl_interface_group=0

# Let wpa_supplicant take care of scanning and AP selection
ap_scan=1

# Select configuration backend:
# file = text file (e.g., wpa_supplicant.conf)
CONFIG_BACKEND=file

# Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers
network={
  ssid="Linex"
  psk="Emma598124912"
  # The higher the priority the sooner we are matched
  priority=5
}

# Same as previous, but request SSID-specific scanning (for APs that reject
# broadcast SSID)
network={
  ssid="Linex"
  scan_ssid=1
  psk="Emma598124912"
  priority=2
}
Then I enter the command
wpa_supplicant -Bw -Dndiswrapper
-c/etc/wpa_supplicant.conf -iwlan0
But no wireless connection. What I'm doing wrong??
 
Old 02-19-2007, 03:39 PM   #5
jbuckley2004
Member
 
Registered: Aug 2004
Distribution: Fedora (KDE spin)
Posts: 224

Rep: Reputation: 70
Instead of -Dndiswrapper in the command, use -Dwext instead. I believe what you did is used for older versions of ndiswrapper.
Good luck.
 
Old 02-19-2007, 03:43 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Well, for starters your wpa_supplicant.conf file is mighty hosed up. It should look something like this:

Code:
network={
ssid="WPA_NETOWRK_SSID"
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="WPA_Passphrase"
priority=1
}
You need a network={} for each network you want to configure. You've got a ton of extra stuff in your file, including some of the compiling configurations. Clean it up and it might work.
 
  


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
Ndiswrapper and WPA on Ubuntu 6.06 xbennyboy Ubuntu 9 09-03-2006 11:30 PM
WPA-PSK w/ ndiswrapper microsoft/linux Linux - Laptop and Netbook 1 08-29-2005 09:02 PM
WPA and ndiswrapper lordpeter Linux - Wireless Networking 4 02-07-2005 08:25 PM
Ndiswrapper And Wpa In Suse 9.1 biastoch Linux - Wireless Networking 8 11-03-2004 05:29 PM
ndiswrapper and WPA biastoch Linux - Wireless Networking 2 10-12-2004 07:43 AM

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

All times are GMT -5. The time now is 02:38 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