Staging: wilc1000: coreconfigurator: Remove trailing whitespace
[firefly-linux-kernel-4.4.55.git] / drivers / staging / wilc1000 / linux_mon.c
index b1af421178f27eeb455e25c92e1befc64712c271..450af1b77f991369fea3a8262d7566fba3c7a58e 100644 (file)
@@ -24,8 +24,6 @@ struct wilc_wfi_radiotap_cb_hdr {
        u16 tx_flags;
 } __attribute__((packed));
 
-extern linux_wlan_t *g_linux_wlan;
-
 static struct net_device *wilc_wfi_mon; /* global monitor netdev */
 
 extern int  mac_xmit(struct sk_buff *skb, struct net_device *dev);
@@ -197,7 +195,8 @@ static int mon_mgmt_tx(struct net_device *dev, const u8 *buf, size_t len)
        mgmt_tx->size = len;
 
        memcpy(mgmt_tx->buff, buf, len);
-       g_linux_wlan->oup.wlan_add_mgmt_to_tx_que(mgmt_tx, mgmt_tx->buff, mgmt_tx->size, mgmt_tx_complete);
+       wilc_wlan_txq_add_mgmt_pkt(mgmt_tx, mgmt_tx->buff, mgmt_tx->size,
+                                  mgmt_tx_complete);
 
        netif_wake_queue(dev);
        return 0;
@@ -309,32 +308,6 @@ static const struct net_device_ops wilc_wfi_netdev_ops = {
 
 };
 
-/**
- *  @brief      WILC_WFI_mon_setup
- *  @details
- *  @param[in]
- *  @return     int : Return 0 on Success
- *  @author    mdaftedar
- *  @date      12 JUL 2012
- *  @version   1.0
- */
-static void WILC_WFI_mon_setup(struct net_device *dev)
-{
-
-       dev->netdev_ops = &wilc_wfi_netdev_ops;
-       PRINT_INFO(CORECONFIG_DBG, "In Ethernet setup function\n");
-       ether_setup(dev);
-       dev->priv_flags |= IFF_NO_QUEUE;
-       dev->type = ARPHRD_IEEE80211_RADIOTAP;
-       eth_zero_addr(dev->dev_addr);
-
-       {
-               unsigned char mac_add[] = {0x00, 0x50, 0xc2, 0x5e, 0x10, 0x8f};
-               memcpy(dev->dev_addr, mac_add, ETH_ALEN);
-       }
-
-}
-
 /**
  *  @brief      WILC_WFI_init_mon_interface
  *  @details