int iwl_mvm_leds_init(struct iwl_mvm *mvm)
{ int mode = iwlwifi_mod_params.led_mode; int ret;
switch (mode) { case IWL_LED_BLINK:
IWL_ERR(mvm, "Blink led mode not supported, used default\n");
fallthrough; case IWL_LED_DEFAULT: case IWL_LED_RF_STATE:
mode = IWL_LED_RF_STATE; break; case IWL_LED_DISABLE:
IWL_INFO(mvm, "Led disabled\n"); return 0; default: return -EINVAL;
}
mvm->led.name = kasprintf(GFP_KERNEL, "%s-led",
wiphy_name(mvm->hw->wiphy)); if (!mvm->led.name) return -ENOMEM;
void iwl_mvm_leds_sync(struct iwl_mvm *mvm)
{ if (!(mvm->init_status & IWL_MVM_INIT_STATUS_LEDS_INIT_COMPLETE)) return;
/* * if we control through the register, we're doing it * even when the firmware isn't up, so no need to sync
*/ if (mvm->trans->mac_cfg->device_family < IWL_DEVICE_FAMILY_8000) return;
iwl_mvm_led_set(mvm, mvm->led.brightness > 0);
}
void iwl_mvm_leds_exit(struct iwl_mvm *mvm)
{ if (!(mvm->init_status & IWL_MVM_INIT_STATUS_LEDS_INIT_COMPLETE)) return;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.