pc_wifi: provide generic LED related dummies

The generated dummies triggered when using a Atheros AR9462 device.

Fixes #5191.
This commit is contained in:
Josef Söntgen 2024-04-23 11:21:42 +02:00 committed by Christian Helmuth
parent 60d97fab7e
commit a029b85d62
2 changed files with 51 additions and 48 deletions

View File

@ -687,3 +687,54 @@ void iommu_device_unuse_default_domain(struct device * dev)
{
lx_emul_trace(__func__);
}
#include <net/mac80211.h>
const char * __ieee80211_create_tpt_led_trigger(struct ieee80211_hw * hw,unsigned int flags,const struct ieee80211_tpt_blink * blink_table,unsigned int blink_table_len)
{
lx_emul_trace(__func__);
return NULL;
}
#include <net/mac80211.h>
const char * __ieee80211_get_radio_led_name(struct ieee80211_hw * hw)
{
lx_emul_trace(__func__);
return NULL;
}
#include <linux/leds.h>
int led_classdev_register_ext(struct device * parent,struct led_classdev * led_cdev,struct led_init_data * init_data)
{
lx_emul_trace(__func__);
return -1;
}
#include <linux/leds.h>
void led_classdev_unregister(struct led_classdev * led_cdev)
{
lx_emul_trace(__func__);
}
#include <linux/leds.h>
void led_trigger_blink_oneshot(struct led_trigger * trig,unsigned long * delay_on,unsigned long * delay_off,int invert)
{
lx_emul_trace(__func__);
}
#include <linux/leds.h>
void led_trigger_unregister(struct led_trigger * trig)
{
lx_emul_trace(__func__);
}

View File

@ -36,22 +36,6 @@ unsigned long __fdget(unsigned int fd)
}
#include <net/mac80211.h>
const char * __ieee80211_create_tpt_led_trigger(struct ieee80211_hw * hw,unsigned int flags,const struct ieee80211_tpt_blink * blink_table,unsigned int blink_table_len)
{
lx_emul_trace_and_stop(__func__);
}
#include <net/mac80211.h>
const char * __ieee80211_get_radio_led_name(struct ieee80211_hw * hw)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/printk.h>
void __printk_safe_enter(void)
@ -706,38 +690,6 @@ int kobject_synth_uevent(struct kobject * kobj,const char * buf,size_t count)
}
#include <linux/leds.h>
int led_classdev_register_ext(struct device * parent,struct led_classdev * led_cdev,struct led_init_data * init_data)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/leds.h>
void led_classdev_unregister(struct led_classdev * led_cdev)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/leds.h>
void led_trigger_blink_oneshot(struct led_trigger * trig,unsigned long * delay_on,unsigned long * delay_off,int invert)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/leds.h>
void led_trigger_unregister(struct led_trigger * trig)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/preempt.h>
void migrate_disable(void)