Skip to content

Commit

Permalink
wifi fix build failed in kernel 5.15 [1/1]
Browse files Browse the repository at this point in the history
PD#SWPL-83693

Problem:
fix build failed in kernel 5.15

Solution:
fix build failed in kernel 5.15

Verify:
local build

Signed-off-by: libo <bo.li@amlogic.com>
Change-Id: Ibef9ba086e4775595500d63fb6e976d4f2e60a4c
  • Loading branch information
libo authored and Portisch committed Dec 21, 2022
1 parent 151fd1a commit 7474c26
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
4 changes: 4 additions & 0 deletions project_w1/vmac/wifi_cfg80211.c
Expand Up @@ -27,6 +27,10 @@
#include "wifi_mac_tx_reg.h"
#include "wifi_drv_capture.h"

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif

#ifdef CONFIG_AML_CFG80211

/** vendor events */
Expand Down
4 changes: 4 additions & 0 deletions project_w1/vmac/wifi_common.c
Expand Up @@ -15,6 +15,10 @@
#include <linux/namei.h>
#include "wifi_common.h"

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif

static int openFile(struct file **fpp, const char *path, int flag, int mode)
{
struct file *fp;
Expand Down
7 changes: 5 additions & 2 deletions project_w1/vmac/wifi_drv_capture.c
@@ -1,7 +1,10 @@
#include "wifi_drv_capture.h"
#include<asm/div64.h>



#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif

#ifdef WIFI_CAPTURE

unsigned char readbuf[TESTBUSBUF_LEN] = {0};
Expand Down
4 changes: 4 additions & 0 deletions project_w1/vmac/wifi_drv_config.c
Expand Up @@ -16,6 +16,10 @@
#include "wifi_drv_if.h"
#include "wifi_debug.h"

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif

int drv_set_config(void * dev, enum cip_param_id id, int data)
{
struct drv_private *drv_priv = ( struct drv_private *)dev;
Expand Down
3 changes: 3 additions & 0 deletions project_w1/vmac/wifi_hal_cmd.c
Expand Up @@ -34,6 +34,9 @@ namespace FW_NAME
#include "wifi_drv_statistic.h"
#endif

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif

#define WIFI_CONF_PATH "/vendor/etc/wifi/w1"

Expand Down

0 comments on commit 7474c26

Please sign in to comment.