-/* $OpenBSD: if_iwx.c,v 1.147 2022/05/13 05:06:56 stsp Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.148 2022/05/13 08:48:40 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
int
iwx_read_firmware(struct iwx_softc *sc)
{
+ struct ieee80211com *ic = &sc->sc_ic;
struct iwx_fw_info *fw = &sc->sc_fw;
struct iwx_tlv_ucode_header *uhdr;
struct iwx_ucode_tlv tlv;
goto out;
}
+ if (ic->ic_if.if_flags & IFF_DEBUG)
+ printf("%s: using firmware %s\n", DEVNAME(sc), sc->sc_fwname);
+
sc->sc_capaflags = 0;
sc->sc_capa_n_scan_channels = IWX_DEFAULT_SCAN_CHANNELS;
memset(sc->sc_enabled_capa, 0, sizeof(sc->sc_enabled_capa));