On Sat, 6 Jul 2013, Alexis de BRUYN wrote:
...
>       On a fresh install, while trying to hide the network ID (ESSID)
> with the following command :
> ifconfig athn0 192.168.0.56 255.255.255.0 \
> media autoselect mode 11g mediaopt hostap \
> nwid network-id nwflag hidenwid
> 
> this error message is returned "ifconfig: SIOCS80211FLAGS: Invalid argument".
...
> Like mentionned, I have tried to move the nwflag in the command line (or 
> in /etc/hostname.athn0, even put nwflag hidenwid in the second line), 
> but no success.

What error, if any, do you get if you completely separate nwflag into a 
separate ifconfig invocation?  I.e., first run
        ifconfig athn0 192.168.0.56 255.255.255.0 \
                media autoselect mode 11g mediaopt hostap \
                nwid network-id

then give it a moment and verify that it shows the media as hostap, and 
only then do
        ifconfig athn0 nwflag hidenwid

?


It appears to me that ifconfig knows to delay/combine media and mediaopt 
settings, but it performs nwflag as it parses the command line...before it 
process the delayed media command.  Since the ioctl() for setting "nwflag 
hidenwid" is an error if not _currently_ in hostap mode, it'll fail if 
used in the very ifconfig invocation that turns on hostap mode.  That 
means it *should* work if done in a separate command, as seen by "William 
Graeber" from the archive message you linked to.  If you don't see that 
behavior, then something else is going on.


Philip Guenther

Reply via email to