Compile fix with VLAN support on recent kernels

VLAN operations should be in net_device_ops.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4059 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2009-06-25 22:22:58 +00:00
parent 2d0ca57ecd
commit 530d6494db
3 changed files with 17 additions and 6 deletions

View File

@ -409,6 +409,11 @@ static const struct net_device_ops ieee80211_netdev_ops = {
.ndo_set_multicast_list = ieee80211_set_multicast_list,
.ndo_change_mtu = ieee80211_change_mtu,
.ndo_do_ioctl = ieee80211_ioctl,
#if IEEE80211_VLAN_TAG_USED
.ndo_vlan_rx_register = ieee80211_vlan_register,
.ndo_vlan_rx_add_vid = ieee80211_vlan_add_vid,
.ndo_vlan_rx_kill_vid = ieee80211_vlan_kill_vid,
#endif
};
#endif
@ -441,6 +446,11 @@ ieee80211_vap_setup(struct ieee80211com *ic, struct net_device *dev,
dev->set_multicast_list = ieee80211_set_multicast_list;
dev->change_mtu = ieee80211_change_mtu;
dev->do_ioctl = ieee80211_ioctl;
#if IEEE80211_VLAN_TAG_USED
dev->vlan_rx_register = ieee80211_vlan_register;
dev->vlan_rx_add_vid = ieee80211_vlan_add_vid;
dev->vlan_rx_kill_vid = ieee80211_vlan_kill_vid;
#endif
#else
dev->netdev_ops = &ieee80211_netdev_ops;
#endif

View File

@ -178,7 +178,7 @@ EXPORT_SYMBOL(ieee80211_getmgtframe);
/*
* Register a vlan group.
*/
static void
void
ieee80211_vlan_register(struct net_device *dev, struct vlan_group *grp)
{
struct ieee80211vap *vap = netdev_priv(dev);
@ -189,7 +189,7 @@ ieee80211_vlan_register(struct net_device *dev, struct vlan_group *grp)
/*
* Add an rx vlan identifier
*/
static void
void
ieee80211_vlan_add_vid(struct net_device *dev, unsigned short vid)
{
struct ieee80211vap *vap = netdev_priv(dev);
@ -201,7 +201,7 @@ ieee80211_vlan_add_vid(struct net_device *dev, unsigned short vid)
/*
* Kill (i.e. delete) a vlan identifier.
*/
static void
void
ieee80211_vlan_kill_vid(struct net_device *dev, unsigned short vid)
{
struct ieee80211vap *vap = netdev_priv(dev);
@ -219,9 +219,6 @@ ieee80211_vlan_vattach(struct ieee80211vap *vap)
dev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX |
NETIF_F_HW_VLAN_FILTER;
dev->vlan_rx_register = ieee80211_vlan_register;
dev->vlan_rx_add_vid = ieee80211_vlan_add_vid;
dev->vlan_rx_kill_vid = ieee80211_vlan_kill_vid;
#endif /* IEEE80211_VLAN_TAG_USED */
}

View File

@ -636,4 +636,8 @@ int ieee80211_ioctl_create_vap(struct ieee80211com *, struct ifreq *,
struct net_device *);
struct ieee80211vap *ieee80211_create_vap(struct ieee80211com *, char *,
struct net_device *, int, int);
void ieee80211_vlan_register(struct net_device *dev, struct vlan_group *grp);
void ieee80211_vlan_add_vid(struct net_device *dev, unsigned short vid);
void ieee80211_vlan_kill_vid(struct net_device *dev, unsigned short vid);
#endif /* _NET80211_IEEE80211_LINUX_H_ */