<!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>
Ok I got the logs from wpa_supplicant after it was run by my application, and I see this error:<BR>
<BR>
wlan0: Driver does not support AP mode<BR>
<BR>
I also tried running wpa_supplicant on its own, with this configuration file:<BR>
<BR>
ap_scan=2<BR>
network={<BR>
ssid="testadhoc"<BR>
key_mgmt=NONE<BR>
wep_key0="12345"<BR>
mode=2<BR>
frequency=2412<BR>
}<BR>
<BR>
and got the exact same error.<BR>
<BR>
The thing is, if I run hostapd with this config file, it works correctly:<BR>
<BR>
interface=wlan0<BR>
ssid=testadhoc<BR>
hw_mode=g<BR>
auth_algs=3<BR>
wep_default_key=0<BR>
wep_key0="12345"<BR>
channel=11<BR>
<BR>
If my driver actually doesn't support AP mode, shouldn't hostapd be failing as well?<BR>
<BR>
<BR>
On Thu, 2015-04-23 at 16:28 -0500, Dan Williams wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Thu, 2015-04-23 at 13:57 -0700, Marlon Smith wrote:
<FONT COLOR="#737373">> Hi everyone,</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> I've written an application that allows a user to connect to a wifi</FONT>
<FONT COLOR="#737373">> network. The application uses the dbus interface of wpa supplicant, and</FONT>
<FONT COLOR="#737373">> it works great.</FONT>
<FONT COLOR="#737373">> </FONT>
<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>
You also want to set the Interface object's 'ap_scan' variable to '2',
same as for adhoc mode.
But beyond that, it should just work if the driver supports AP mode.
What errors are you getting? Can you share some supplicant debug logs?
You can run the supplicant with "-dddtu" arguments alone and that should
enable the dbus interface and provide verbose debugging output.
Dan
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>