<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
Thanks for the response Jouni. I just posted another message to the list with more details, but basically I'm getting this error:<BR>
<BR>
wlan0: Driver does not support AP mode<BR>
<BR>
However hostapd works correctly. Which seems weird to me.<BR>
<BR>
On Fri, 2015-04-24 at 00:46 +0300, Jouni Malinen wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Thu, Apr 23, 2015 at 01:57:58PM -0700, Marlon Smith wrote:
<FONT COLOR="#737373">> I need a way for the user to be able to configure the system as an</FONT>
<FONT COLOR="#737373">> access point as well. I've tried setting mode=2 and frequency=2412 but</FONT>
<FONT COLOR="#737373">> with no luck. I'm thinking I might have to instead use hostapd, but</FONT>
<FONT COLOR="#737373">> that becomes a pain because hostapd kills wpa_supplicant when it starts</FONT>
<FONT COLOR="#737373">> and has no dbus interfaces that I can find.</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> What I'd really like to know is: is there anyway to use wpa_supplicant</FONT>
<FONT COLOR="#737373">> via the dbus interface to configure it as an access point? If not, are</FONT>
<FONT COLOR="#737373">> there any undocumented dbus interfaces that can control hostapd?</FONT>
Works fine for me with wpa_supplicant.. For example with this as an
extension to tests/hwsim/test_dbus.py:
def test_dbus_ap_simple(dev, apdev):
"""D-Bus AddNetwork for AP mode (simple)"""
(bus,wpas_obj,path,if_obj) = prepare_dbus(dev[0])
iface = dbus.Interface(if_obj, WPAS_DBUS_IFACE)
ssid = "test-wpa2-psk"
passphrase = 'qwertyuiop'
args = dbus.Dictionary({ 'ssid': ssid,
'key_mgmt': 'WPA-PSK',
'psk': passphrase,
'mode': 2,
'frequency': 2412 },
signature='sv')
netw = iface.AddNetwork(args)
iface.SelectNetwork(netw)
dev[1].connect(ssid, psk=passphrase, scan_freq="2412")
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>