wifi: allow driver dump in error case

This commit implements dummies that would otherwise trigger a
'generated dummy' call that stops the driver.
This commit is contained in:
Josef Söntgen 2023-02-16 12:20:42 +01:00 committed by Christian Helmuth
parent 98fa0a1ad2
commit 487aad6db1
3 changed files with 17 additions and 9 deletions

View File

@ -368,3 +368,12 @@ void pci_disable_device(struct pci_dev * dev)
{
lx_emul_trace(__func__);
}
#include <linux/leds.h>
#include <../net/mac80211/ieee80211_i.h> /* struct ieee80211_local */
void ieee80211_free_led_names(struct ieee80211_local * local)
{
lx_emul_trace(__func__);
}

View File

@ -1,7 +1,7 @@
/*
* \brief Dummy definitions of Linux Kernel functions
* \author Automatically generated file - do no edit
* \date 2022-07-29
* \date 2023-02-28
*/
#include <lx_emul.h>
@ -702,14 +702,6 @@ int open_related_ns(struct ns_common * ns,struct ns_common * (* get_ns)(struct n
enum reboot_mode panic_reboot_mode;
#include <linux/pci.h>
int pci_read_config_dword(const struct pci_dev * dev,int where,u32 * val)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/pci.h>
void pci_stop_and_remove_bus_device(struct pci_dev * dev)

View File

@ -691,3 +691,10 @@ void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)
return lx_emul_io_mem_map(phys_addr, size);
}
int pci_read_config_dword(const struct pci_dev * dev,int where,u32 * val)
{
*val = 0;
return 0;
}