Return-path: Received: from eusmtp01.atmel.com ([212.144.249.242]:52019 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751100AbbJWF1l (ORCPT ); Fri, 23 Oct 2015 01:27:41 -0400 From: Glen Lee To: CC: , , , , , , , , Subject: [PATCH 18/28] staging: wilc1000: mac_ioctl: use private data instead of g_linux_wlan Date: Fri, 23 Oct 2015 14:28:34 +0900 Message-ID: <1445578124-31486-18-git-send-email-glen.lee@atmel.com> (sfid-20151023_074657_355479_370D7904) In-Reply-To: <1445578124-31486-1-git-send-email-glen.lee@atmel.com> References: <1445578124-31486-1-git-send-email-glen.lee@atmel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: Use netdev private data member wilc instead of g_linux_wlan. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/linux_wlan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 75dad3e..05cb442 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -1489,11 +1489,13 @@ int mac_ioctl(struct net_device *ndev, struct ifreq *req, int cmd) perInterface_wlan_t *nic; struct wilc_priv *priv; s32 s32Error = 0; + struct wilc *wl; /* struct iwreq *wrq = (struct iwreq *) req; // tony moved to case SIOCSIWPRIV */ nic = netdev_priv(ndev); + wl = nic->wilc; - if (!g_linux_wlan->initialized) + if (!wl->initialized) return 0; switch (cmd) { -- 1.9.1