<!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.&nbsp; 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.&nbsp; 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">&gt; I need a way for the user to be able to configure the system as an</FONT>
<FONT COLOR="#737373">&gt; access point as well.  I've tried setting mode=2 and frequency=2412 but</FONT>
<FONT COLOR="#737373">&gt; with no luck.  I'm thinking I might have to instead use hostapd, but</FONT>
<FONT COLOR="#737373">&gt; that becomes a pain because hostapd kills wpa_supplicant when it starts</FONT>
<FONT COLOR="#737373">&gt; and has no dbus interfaces that I can find.</FONT>
<FONT COLOR="#737373">&gt; </FONT>
<FONT COLOR="#737373">&gt; What I'd really like to know is:  is there anyway to use wpa_supplicant</FONT>
<FONT COLOR="#737373">&gt; via the dbus interface to configure it as an access point?  If not, are</FONT>
<FONT COLOR="#737373">&gt; 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):
    &quot;&quot;&quot;D-Bus AddNetwork for AP mode (simple)&quot;&quot;&quot;
    (bus,wpas_obj,path,if_obj) = prepare_dbus(dev[0])
    iface = dbus.Interface(if_obj, WPAS_DBUS_IFACE)

    ssid = &quot;test-wpa2-psk&quot;
    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=&quot;2412&quot;)

</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>