mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
staging: wilc1000: add wilc to netdev private data structure
This patch add wilc to struct perInterface_wlan_t which is netdev private data to access wilc via netdev_priv function. Assign wilc to nic->wilc. The global variable g_linux_wlan will be replaced with netdev private data member wilc step by step. Signed-off-by: Glen Lee <glen.lee@atmel.com> Signed-off-by: Tony Cho <tony.cho@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c0f52fbac7
commit
38b3001de9
2 changed files with 2 additions and 1 deletions
|
|
@ -1662,6 +1662,7 @@ int wilc_netdev_init(struct wilc **wilc)
|
|||
|
||||
nic->u8IfIdx = g_linux_wlan->vif_num;
|
||||
nic->wilc_netdev = ndev;
|
||||
nic->wilc = *wilc;
|
||||
g_linux_wlan->vif[g_linux_wlan->vif_num].ndev = ndev;
|
||||
g_linux_wlan->vif_num++;
|
||||
ndev->netdev_ops = &wilc_netdev_ops;
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ typedef struct {
|
|||
struct_frame_reg g_struct_frame_reg[num_reg_frame];
|
||||
struct net_device *wilc_netdev;
|
||||
struct net_device_stats netstats;
|
||||
|
||||
struct wilc *wilc;
|
||||
} perInterface_wlan_t;
|
||||
|
||||
struct WILC_WFI_mon_priv {
|
||||
|
|
|
|||
Loading…
Reference in a new issue