staging: wilc1000: remove function pointer rx_indicate
authorGlen Lee <glen.lee@atmel.com>
Thu, 24 Sep 2015 09:14:52 +0000 (18:14 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 00:39:57 +0000 (02:39 +0200)
This patch removes function pointer rx_indicate and call the function
frmw_to_linux directly.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h
drivers/staging/wilc1000/wilc_wlan.c
drivers/staging/wilc1000/wilc_wlan_if.h

index 1f1b34bf0ba3748921ef6923e6df0ae3cf70dc2f..8119c4037fa79e18bff48c31a1a5c778ebba59f4 100644 (file)
@@ -106,7 +106,6 @@ extern void WILC_WFI_monitor_rx(u8 *buff, u32 size);
 extern void WILC_WFI_p2p_rx(struct net_device *dev, u8 *buff, u32 size);
 
 static void linux_wlan_tx_complete(void *priv, int status);
-void frmw_to_linux(u8 *buff, u32 size, u32 pkt_offset);
 static int  mac_init_fn(struct net_device *ndev);
 int  mac_xmit(struct sk_buff *skb, struct net_device *dev);
 int  mac_open(struct net_device *ndev);
@@ -1095,7 +1094,6 @@ void linux_to_wlan(wilc_wlan_inp_t *nwi, linux_wlan_t *nic)
 #endif
 
        /*for now - to be revised*/
-       nwi->net_func.rx_indicate = frmw_to_linux;
        nwi->net_func.rx_complete = linux_wlan_rx_complete;
        nwi->indicate_func.mac_indicate = linux_wlan_mac_indicate;
 }
index 90fe1e2740332f9a7eac267d3aac9f6a19accd13..72220dfc6be0d47c60c516ee6e62294df67e40cd 100644 (file)
@@ -216,5 +216,6 @@ struct WILC_WFI_mon_priv {
 };
 
 extern struct net_device *WILC_WFI_devs[];
+void frmw_to_linux(u8 *buff, u32 size, u32 pkt_offset);
 
 #endif
index a3dd421b7f325a45d4a360f6cb3a14537e4e194c..fe87c2b4f0c814f5f33a13893b0f82c326d4339c 100644 (file)
@@ -1199,12 +1199,11 @@ static void wilc_wlan_handle_rxq(void)
                        {
 
                                if (!is_cfg_packet) {
-
-                                       if (p->net_func.rx_indicate) {
-                                               if (pkt_len > 0) {
-                                                       p->net_func.rx_indicate(&buffer[offset], pkt_len, pkt_offset);
-                                                       has_packet = 1;
-                                               }
+                                       if (pkt_len > 0) {
+                                               frmw_to_linux(&buffer[offset],
+                                                             pkt_len,
+                                                             pkt_offset);
+                                               has_packet = 1;
                                        }
                                } else {
                                        wilc_cfg_rsp_t rsp;
index ff25b3a1ea5d4b9184a45f876125b771c119bfc4..d921f1cf890fe347c257176f0122f9512bdbb477 100644 (file)
@@ -100,7 +100,6 @@ typedef struct {
 } wilc_wlan_io_func_t;
 
 typedef struct {
-       void (*rx_indicate)(u8 *, u32, u32);
        void (*rx_complete)(void);
 } wilc_wlan_net_func_t;