Search Linux Wireless

Re: ath5k + AP mode?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Bob Copeland" <bcopeland@xxxxxxxxx> writes:

>> Failed to set interface wlan0 to master mode.
>> nl80211 driver initialization failed.
>> wlan0: Unable to setup interface.
>
> It's probably worth taking a look at hostapd to see what exactly is failing.
> We should be able to create an IFTYPE_AP interface with your above patch
> applied.  No telling whether the rest works.

Well, it seems nl80211_set_master_mode() calls send_and_recv_msgs()
and then nl_recvmsgs(0x58cf0, 0x5b2f8) fails with -95 (-EOPNOTSUPP).

sendmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
 msg_iov(1)=[{"\x24\x00\x00\x00\x11\x00\x05\x00\x2f\xf5\x47\x49\xd0\x01\x00\x00\x06\x00\x00\x00\x08\x00\x03\x00\x03\x00\x00\x00\x08\x00\x05\x00\x03\x00\x00\x00"..., 36}],
 msg_controllen=0, msg_flags=0}, 0) = 36

recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
 msg_iov(1)=[{"\x24\x00\x00\x00\x02\x00\x00\x00\x5d\xf6\x47\x49\xd7\x01\x00\x00\xa1\xff\xff\xff\x24\x00\x00\x00\x11\x00\x05\x00\x5d\xf6\x47\x49\xd7\x01\x00\x00"..., 4096}],
msg_controllen=0, msg_flags=0}, 0) = 36

$ grep -lr -- -EOPNOTSUPP drivers/net/wireless/ath5k
drivers/net/wireless/ath5k/base.c
drivers/net/wireless/ath5k/pcu.c
but it doesn't seem it's one of those.

Request:
24 00 00 00	len
11 00		type = genl_family_get_id(drv->nl80211)
05 00		flags = NLM_F_REQUEST | NLM_F_ACK
2f f5 47 49	seq
d0 01 00 00	pid

06 00 00 00	NL80211_CMD_SET_INTERFACE

08 00		len
03 00		NL80211_ATTR_IFINDEX
03 00 00 00	if_nametoindex(ifname)

08 00		len
05 00		NL80211_ATTR_IFTYPE
03 00 00 00	NL80211_IFTYPE_AP
-- 
Krzysztof Halasa
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux