]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
staging: wilc1000: replaces frame_type with type of struct frame_reg
authorLeo Kim <leo.kim@atmel.com>
Fri, 25 Mar 2016 12:16:50 +0000 (21:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
This patch replaces frame_type with type of struct frame_reg.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h

index 2f830cd3163bca902cb19ac14f5d1219c8504f40..760d44d170568e27d1eac0391c86db36cd090af0 100644 (file)
@@ -966,11 +966,11 @@ int wilc_mac_open(struct net_device *ndev)
 
        wilc_mgmt_frame_register(vif->ndev->ieee80211_ptr->wiphy,
                                 vif->ndev->ieee80211_ptr,
-                                vif->frame_reg[0].frame_type,
+                                vif->frame_reg[0].type,
                                 vif->frame_reg[0].reg);
        wilc_mgmt_frame_register(vif->ndev->ieee80211_ptr->wiphy,
                                 vif->ndev->ieee80211_ptr,
-                                vif->frame_reg[1].frame_type,
+                                vif->frame_reg[1].type,
                                 vif->frame_reg[1].reg);
        netif_wake_queue(ndev);
        wl->open_ifcs++;
@@ -1260,8 +1260,8 @@ void WILC_WFI_mgmt_rx(struct wilc *wilc, u8 *buff, u32 size)
        }
 
        vif = netdev_priv(wilc->vif[1]->ndev);
-       if ((buff[0] == vif->frame_reg[0].frame_type && vif->frame_reg[0].reg) ||
-           (buff[0] == vif->frame_reg[1].frame_type && vif->frame_reg[1].reg))
+       if ((buff[0] == vif->frame_reg[0].type && vif->frame_reg[0].reg) ||
+           (buff[0] == vif->frame_reg[1].type && vif->frame_reg[1].reg))
                WILC_WFI_p2p_rx(wilc->vif[1]->ndev, buff, size);
 }
 
index 3e0ffee894161ba9e8f66d43c51446da7e65e1d1..5785dda8f9d392e35123450b200bc455ebdd81b7 100644 (file)
@@ -1745,14 +1745,14 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev,
        switch (frame_type) {
        case PROBE_REQ:
        {
-               vif->frame_reg[0].frame_type = frame_type;
+               vif->frame_reg[0].type = frame_type;
                vif->frame_reg[0].reg = reg;
        }
        break;
 
        case ACTION:
        {
-               vif->frame_reg[1].frame_type = frame_type;
+               vif->frame_reg[1].type = frame_type;
                vif->frame_reg[1].reg = reg;
        }
        break;
index 3abe48188d3d3f8a5b9af08d26473da4fb6f4ad3..debb139b7687444966b80885e5669c7f1d7b6cbc 100644 (file)
@@ -140,7 +140,7 @@ struct wilc_priv {
 };
 
 struct frame_reg {
-       u16 frame_type;
+       u16 type;
        bool reg;
 };