From: Vitalie Vrabie on
my NDIS IM adds some network functionality which is possible only in
ad-hoc mode of the wifi network and only if the modulation is OFDM and
not DSSS. (802.11b is DSSS and 802.11g is OFDM)

i reserved a particular SSID as an indication to my driver to activate
itself. i want to make it disconnect the media if it doesn't qualify,
then force 802.11g mode, then retry the media connection. also i don't
want to force anything that is not related to that specific SSID.

q1. how to check (from a usermode application) if the adapter is at
all capable of ad-hoc on g?
(the application that installs the driver could check for this
condition and explain the situation to the user.)

q2. how to force it to use g and not fall back to b?
(i saw vendor-specific utilities that do this thing for particular
adapters, but i'm interested in a generic possibility for all of them.
this must be done in the driver in my case.)

q3. how to correctly fail the media connect (from my NDIS IM) if the
underlying layer has connected with line conditions that don't
qualify?
(fail and disconnect, then force g mode, then reconnect)