You are not logged in.

#1 2011-02-16 22:12:49

swasheck
Member
Registered: 2011-02-15
Posts: 1

hostapd/iwl4965 combo - failing to set interface to mode 3

Hi,
I'm pushing the limits of my linux knowledge. I've been attempting to turn an old Lenovo StinkPad X61s into a wireless router for my home (upgrade from DLink WGR 1310?).

I saw hostapd as an option for creating a software access point on the ArchWiki. I don't really know what to do, though. I'm using the nl80211 driver but am getting an error for

hostapd -dd /etc/hostapd/hostapd.conf

.
Here's the output:

Configuration file: /etc/hostapd/hostapd.conf
nl80211: Add own interface ifindex 4
nl80211: Add own interface ifindex 3
nl80211: Failed to set interface to mode 3: -95 (Operation not supported)
nl80211: Failed to set interface to mode 3: -95 (Operation not supported)
nl80211: Interface mode change to 3 from 0 failed
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=4 eloop_data=0x167d3f0 user_data=0x167eb90 handler=0x42dad0
ELOOP: remaining socket: sock=6 eloop_data=0x1681090 user_data=(nil) handler=0x436c00

I've also used portions of http://www.su-root.eu/computing/turn-yo … ng-hostapd as well as the config from https://bbs.archlinux.org/viewtopic.php?id=110664

I guess I'm getting the sneaky suspicion that I can't do this with this card.

lspci -k | grep Network

yields:

00:19.0 Network controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)

Also ... it may be that I'm using the incorrect driver but I don't know how to find the correct one. I took this

modprobe KERNEL_MODULE | grep '^depends:'

from the su-root.eu site but I don't know the kernel module name. I tried iwl4965 which yields no response. A

modprobe iwl4965

explicitly loads the module, I'd assume. I know that it loads automatically. As a test I decided to see if I could connect to another WAP to ensure that the internal wireless card was actually function and I was able to connect. After that I restarted so that I could make sure all of the interfaces were "clean" a la https://wiki.archlinux.org/index.php/So … cess_Point.

Help?

Is hostapd the only way to go about doing this? Is there a better way to do this? Thanks, in advance.

EDIT:

from what I can tell (and I'm not brilliant at this), the 4965 should be able to support master mode, right?
http://osdir.com/ml/linux.drivers.ipw39 … 00184.html

http://www.spinics.net/lists/linux-wire … 24469.html

Last edited by swasheck (2011-02-17 15:36:31)

Offline

#2 2011-02-18 10:53:05

chancho
Member
From: Hong Kong
Registered: 2006-07-14
Posts: 114

Re: hostapd/iwl4965 combo - failing to set interface to mode 3

i can not find the iwl4965 in my system, may be you can try the other "iwl" drivers.
do a search "find /lib/modules | grep iwl" will show all iwl drivers.

Offline

Board footer

Powered by FluxBB