Return-path: Received: from eusmtp01.atmel.com ([212.144.249.243]:20645 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756917AbbJ3DHn (ORCPT ); Thu, 29 Oct 2015 23:07:43 -0400 From: Glen Lee To: CC: , , , , , , , , Subject: [PATCH 01/17] staging: wilc1000: define wiphy private data priv in struct host_if_drv Date: Fri, 30 Oct 2015 12:10:26 +0900 Message-ID: <1446174642-28570-1-git-send-email-glen.lee@atmel.com> (sfid-20151030_040747_342844_6778811D) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: This patch defines wiphy private data priv in struct host_if_drv and set priv to priv in host_if_drv to reference it's wiphy private data. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.h | 1 + drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h index 72c4797..f9efb5a 100644 --- a/drivers/staging/wilc1000/host_interface.h +++ b/drivers/staging/wilc1000/host_interface.h @@ -260,6 +260,7 @@ enum p2p_listen_state { }; struct host_if_drv { + struct wilc_priv *priv; struct user_scan_req usr_scan_req; struct user_conn_req usr_conn_req; struct remain_ch remain_on_ch; diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 32b93d3..8554f6f 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c @@ -3478,6 +3478,7 @@ int wilc_init_host_int(struct net_device *net) s32Error = host_int_init(net, &priv->hWILCWFIDrv); if (s32Error) PRINT_ER("Error while initializing hostinterface\n"); + priv->hWILCWFIDrv->priv = priv; return s32Error; } -- 1.9.1