remove unused lines of code from iwm(4) which were specific to iwx(4) devices
authorstsp <stsp@openbsd.org>
Fri, 9 Jul 2021 11:33:00 +0000 (11:33 +0000)
committerstsp <stsp@openbsd.org>
Fri, 9 Jul 2021 11:33:00 +0000 (11:33 +0000)
sys/dev/pci/if_iwm.c

index 8ddf793..6649016 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_iwm.c,v 1.352 2021/07/09 11:31:05 stsp Exp $       */
+/*     $OpenBSD: if_iwm.c,v 1.353 2021/07/09 11:33:00 stsp Exp $       */
 
 /*
  * Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -7460,10 +7460,6 @@ iwm_umac_scan_size(struct iwm_softc *sc)
                base_size = IWM_SCAN_REQ_UMAC_SIZE_V8;
        else if (isset(sc->sc_ucode_api, IWM_UCODE_TLV_API_ADAPTIVE_DWELL))
                base_size = IWM_SCAN_REQ_UMAC_SIZE_V7;
-#ifdef notyet
-       else if (sc->sc_device_family >= IWM_DEVICE_FAMILY_22000)
-               base_size = IWM_SCAN_REQ_UMAC_SIZE_V6;
-#endif
        if (isset(sc->sc_ucode_api, IWM_UCODE_TLV_API_SCAN_EXT_CHAN_VER))
                tail_size = sizeof(struct iwm_scan_req_umac_tail_v2);
        else
@@ -7482,10 +7478,7 @@ iwm_get_scan_req_umac_chan_param(struct iwm_softc *sc,
 
        if (isset(sc->sc_ucode_api, IWM_UCODE_TLV_API_ADAPTIVE_DWELL))
                return &req->v7.channel;
-#ifdef notyet
-       if (sc->sc_device_family >= IWM_DEVICE_FAMILY_22000)
-               return &req->v6.channel;
-#endif
+
        return &req->v1.channel;
 }
 
@@ -7497,10 +7490,7 @@ iwm_get_scan_req_umac_data(struct iwm_softc *sc, struct iwm_scan_req_umac *req)
 
        if (isset(sc->sc_ucode_api, IWM_UCODE_TLV_API_ADAPTIVE_DWELL))
                return (void *)&req->v7.data;
-#ifdef notyet
-       if (sc->sc_device_family >= IWM_DEVICE_FAMILY_22000)
-               return (void *)&req->v6.data;
-#endif
+
        return (void *)&req->v1.data;
 
 }