[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1474
  • Last Modified:

Problem with wpa_supplicant

Hi. I recently bought a Hawking HWUG1 and followed all the instructions from this link http://forums.remote-exploit.org/showthread.php?t=15785 to be able to use it with my BackTrack 3 distro.

Here is the script I've written:
#!/bin/bash
ifconfig rausb0 down
modprobe -r rt73
tar -jxvf rt73-k2wrlz-3.0.1.tar.bz2
cd rt73-k2wrlz-3.0.1/Module
make && make install
modprobe rt73 ifname=wlan0
cd ../..
tar -xzf wpa_supplicant-0.5.10.tar.gz
cd wpa_supplicant-0.5.10
patch -p1 < ../wpa_supplicant-ralink_rt73.patch
patch -p1 < ../wpa_supplicant-ralink_rt73-fix.patch
cp defconfig .config
make
cp wpa_cli wpa_supplicant /usr/local/bin
echo 'network={
scan_ssid=0
ssid="<my_ssid>"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=<key from wpa_passphrase>
}' > /etc/wpa_supplicant.conf
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf - d rt73 -w

The only thing that I didnt take from the instructions is "cp defconfig .config". The config file wasnt mentioned so I just copied the example. Now I get errors like this:

ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported

This is just from the cerr. Do you think it has to do with the configuration or the driver itself? Appreciate your help.
0
ezgigurkan
Asked:
ezgigurkan
  • 2
1 Solution
 
DarthNoodleCommented:
i would say that this is a driver issue, you might need to find a driver for your exact model. do something like "lspci | grep rt" and see what output it gives you.

i would suggest downloading the updated drivers from somewhere like this
  http://rt2x00.serialmonkey.com/wiki/index.php/Main_Page

if your going to install new drivers dont forget to remove the old ones, the install instructions inside the drivers zip file should explain how to do this.
0
 
ezgigurkanAuthor Commented:
My drivers are definitely rt73, if that's what you're asking. I confirmed that from several sources.

I followed the instructions and downloaded the source code but I don't really know what to do from here. The folder is massive with a lot of things in it. It doesn't look like it's just a driver. I tried typing `make` and `make install` but did not work. And I can't find any tutorials explaining what to do after downloading the source code. The README file seems to explain how to install a kernel and nothing else. I'm not sure why it's talking about a kernel and how it relates to the driver.

Any ideas?
0
 
ezgigurkanAuthor Commented:
Apparently I was supposed to run something like `make menuconfig` before running `make`. I ran it, didn't set or change anything and saved the configuration as it was. After that, `make` worked and I think complied a billion .c files. But I got very similar wpa_supplicant output. Strangly enough I got a lot of messages in cout with the first driver but this one only gave me cerr output and nothing else. The same cerr output as before.

What I figured is that what I got from the repository involved much more than drivers. I think I found where the drivers I want are. The folder contains a bunch of .c files, a Makefile and a Kconfig file. `make` fails with a "no targets" error. I got the impression from the Kconfig file that I need to write/change the Makefile myself according to which driver I have, which is something I cant do.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now