Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/iwm/if_iwm.c
Show First 20 Lines • Show All 436 Lines • ▼ Show 20 Lines | iwm_firmware_store_section(struct iwm_softc *sc, | ||||
fwone->fws_len = dlen - sizeof(uint32_t); | fwone->fws_len = dlen - sizeof(uint32_t); | ||||
fws->fw_count++; | fws->fw_count++; | ||||
fws->fw_totlen += fwone->fws_len; | fws->fw_totlen += fwone->fws_len; | ||||
return 0; | return 0; | ||||
} | } | ||||
#define IWM_DEFAULT_SCAN_CHANNELS 40 | |||||
/* iwlwifi: iwl-drv.c */ | /* iwlwifi: iwl-drv.c */ | ||||
struct iwm_tlv_calib_data { | struct iwm_tlv_calib_data { | ||||
uint32_t ucode_type; | uint32_t ucode_type; | ||||
struct iwm_tlv_calib_ctrl calib; | struct iwm_tlv_calib_ctrl calib; | ||||
} __packed; | } __packed; | ||||
static int | static int | ||||
iwm_set_default_calib(struct iwm_softc *sc, const void *data) | iwm_set_default_calib(struct iwm_softc *sc, const void *data) | ||||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | device_printf(sc->sc_dev, | ||||
"could not read firmware %s (error %d)\n", | "could not read firmware %s (error %d)\n", | ||||
sc->sc_fwname, error); | sc->sc_fwname, error); | ||||
goto out; | goto out; | ||||
} | } | ||||
fw->fw_fp = fwp; | fw->fw_fp = fwp; | ||||
/* (Re-)Initialize default values. */ | /* (Re-)Initialize default values. */ | ||||
sc->sc_capaflags = 0; | sc->sc_capaflags = 0; | ||||
sc->sc_capa_n_scan_channels = IWM_MAX_NUM_SCAN_CHANNELS; | sc->sc_capa_n_scan_channels = IWM_DEFAULT_SCAN_CHANNELS; | ||||
memset(sc->sc_enabled_capa, 0, sizeof(sc->sc_enabled_capa)); | memset(sc->sc_enabled_capa, 0, sizeof(sc->sc_enabled_capa)); | ||||
memset(sc->sc_fw_mcc, 0, sizeof(sc->sc_fw_mcc)); | memset(sc->sc_fw_mcc, 0, sizeof(sc->sc_fw_mcc)); | ||||
/* | /* | ||||
* Parse firmware contents | * Parse firmware contents | ||||
*/ | */ | ||||
uhdr = (const void *)fw->fw_fp->data; | uhdr = (const void *)fw->fw_fp->data; | ||||
▲ Show 20 Lines • Show All 5,663 Lines • Show Last 20 Lines |