staging: rtl8192e: Remove unsupported mode IW_MODE_ADHOC
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 27 Aug 2023 13:27:04 +0000 (15:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Sep 2023 07:47:29 +0000 (09:47 +0200)
Remove unsupported mode IW_MODE_ADHOC because this mode is only partially
coded in the driver.

rtllib_rx_mgt() can only handle probe requests in IW_MODE_ADHOC and no
authentication or association frames.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20230827132704.GA12506@matrix-ESPRIMO-P710
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac_wx.c

index 0b690f0ffeefdbb4854b3d8ee09a22b301bad9ed..48703d93df308fec8f0e7440af5348ed27b348ef 100644 (file)
@@ -258,7 +258,6 @@ int rtllib_wx_set_mode(struct rtllib_device *ieee, struct iw_request_info *a,
        mutex_lock(&ieee->wx_mutex);
        switch (wrqu->mode) {
        case IW_MODE_MONITOR:
-       case IW_MODE_ADHOC:
        case IW_MODE_INFRA:
                break;
        case IW_MODE_AUTO: