mirror of
https://github.com/shenmintao/aic8800d80.git
synced 2026-09-26 17:44:16 +00:00
fix: fix for kernel 6.19
This commit is contained in:
@@ -1636,7 +1636,11 @@ void reord_deinit_sta(struct aicwf_rx_priv* rx_priv, struct reord_ctrl_info *reo
|
|||||||
reord_rxframe_free(&rx_priv->freeq_lock, &rx_priv->rxframes_freequeue, &req->rxframe_list);
|
reord_rxframe_free(&rx_priv->freeq_lock, &rx_priv->rxframes_freequeue, &req->rxframe_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (LINUX_VERSION_CODE <= KERNEL_VERSION(6, 18, 0))
|
||||||
AICWFDBG(LOGINFO, "reord dinit in_irq():%d in_atomic:%d in_softirq:%d\r\n", (int)in_irq()
|
AICWFDBG(LOGINFO, "reord dinit in_irq():%d in_atomic:%d in_softirq:%d\r\n", (int)in_irq()
|
||||||
|
#else
|
||||||
|
AICWFDBG(LOGINFO, "reord dinit in_irq():%d in_atomic:%d in_softirq:%d\r\n", (int)in_hardirq()
|
||||||
|
#endif
|
||||||
,(int)in_atomic(), (int)in_softirq());
|
,(int)in_atomic(), (int)in_softirq());
|
||||||
spin_unlock_bh(&preorder_ctrl->reord_list_lock);
|
spin_unlock_bh(&preorder_ctrl->reord_list_lock);
|
||||||
}
|
}
|
||||||
|
|||||||
+15
@@ -263,6 +263,21 @@ install_firmware() {
|
|||||||
print_info "Copying firmware to $fw_dest..."
|
print_info "Copying firmware to $fw_dest..."
|
||||||
cp -r "$fw_source" "$fw_dest" >> "$LOG_FILE" 2>&1
|
cp -r "$fw_source" "$fw_dest" >> "$LOG_FILE" 2>&1
|
||||||
|
|
||||||
|
# Install udev rules
|
||||||
|
local rules_source="${SCRIPT_DIR}/aic.rules"
|
||||||
|
local rules_dest="/usr/lib/udev/rules.d/aic.rules"
|
||||||
|
|
||||||
|
if [ -f "$rules_source" ]; then
|
||||||
|
print_info "Installing udev rules to $rules_dest..."
|
||||||
|
cp "$rules_source" "$rules_dest" >> "$LOG_FILE" 2>&1
|
||||||
|
# Reload udev rules
|
||||||
|
udevadm control --reload-rules >> "$LOG_FILE" 2>&1 || true
|
||||||
|
udevadm trigger >> "$LOG_FILE" 2>&1 || true
|
||||||
|
print_success "Udev rules installed successfully."
|
||||||
|
else
|
||||||
|
print_warning "Udev rules file not found: $rules_source"
|
||||||
|
fi
|
||||||
|
|
||||||
print_success "Firmware installed successfully."
|
print_success "Firmware installed successfully."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user