nl80211: Use the monitor interface only without device_ap_sme support
authorSunil Dutt <usdutt@qti.qualcomm.com>
Thu, 1 Sep 2016 16:44:36 +0000 (22:14 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 8 Sep 2016 20:19:07 +0000 (23:19 +0300)
commit660103eca9321af45c54f973c99714d583979f9e
tree3599b4869fa8c5d50d93e46f91f944359b0c8c1b
parent4ef3325fb64de4792179034b0e05d2171f5eff23
nl80211: Use the monitor interface only without device_ap_sme support

The places using drv->use_monitor were already skipping creation of the
monitor interface if drv->device_ap_sme == 0. This means that the
monitor interface operations would not have worked anyway and it is safe
to set drv->use_monitor to zero for all such cases. This fixes an issue
with management frame subscription not happening properly for the case
where the AP SME is in the driver and the driver supports monitor
interfaces (for other purposes).

This commit also removes the check for monitor support and the
previously used workaround that cleared drv->use_monitor in
drv->device_ap_sme == 1 case if monitor interface was not supported
since that condition cannot occur anymore.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211_capa.c