Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66875
b: refs/heads/master
c: 09703f5
h: refs/heads/master
i:
  66873: fcb3ddd
  66871: 51232d6
v: v3
  • Loading branch information
Daniel Drake authored and David S. Miller committed Oct 10, 2007
1 parent c0340c1 commit e70e289
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f74347d7ac0aa175b2bbd85eb58a13fbe80a3785
refs/heads/master: 09703f5e79a64c744721b9c27502075232ba0ea2
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/hostap/hostap.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern const struct header_ops hostap_80211_ops;
int hostap_80211_get_hdrlen(u16 fc);
struct net_device_stats *hostap_get_stats(struct net_device *dev);
void hostap_setup_dev(struct net_device *dev, local_info_t *local,
int main_dev);
int type);
void hostap_set_multicast_list_queue(struct work_struct *work);
int hostap_set_hostapd(local_info_t *local, int val, int rtnl_locked);
int hostap_set_hostapd_sta(local_info_t *local, int val, int rtnl_locked);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/hostap/hostap_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3257,7 +3257,7 @@ while (0)

INIT_LIST_HEAD(&local->bss_list);

hostap_setup_dev(dev, local, 1);
hostap_setup_dev(dev, local, HOSTAP_INTERFACE_MASTER);

dev->hard_start_xmit = hostap_master_start_xmit;
dev->type = ARPHRD_IEEE80211;
Expand Down
19 changes: 11 additions & 8 deletions trunk/drivers/net/wireless/hostap/hostap_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct net_device * hostap_add_interface(struct local_info *local,
dev->mem_start = mdev->mem_start;
dev->mem_end = mdev->mem_end;

hostap_setup_dev(dev, local, 0);
hostap_setup_dev(dev, local, type);
dev->destructor = free_netdev;

sprintf(dev->name, "%s%s", prefix, name);
Expand Down Expand Up @@ -857,7 +857,7 @@ const struct header_ops hostap_80211_ops = {
EXPORT_SYMBOL(hostap_80211_ops);

void hostap_setup_dev(struct net_device *dev, local_info_t *local,
int main_dev)
int type)
{
struct hostap_interface *iface;

Expand All @@ -877,15 +877,22 @@ void hostap_setup_dev(struct net_device *dev, local_info_t *local,
dev->do_ioctl = hostap_ioctl;
dev->open = prism2_open;
dev->stop = prism2_close;
dev->hard_start_xmit = hostap_data_start_xmit;
dev->set_mac_address = prism2_set_mac_address;
dev->set_multicast_list = hostap_set_multicast_list;
dev->change_mtu = prism2_change_mtu;
dev->tx_timeout = prism2_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT;

if (type == HOSTAP_INTERFACE_AP) {
dev->hard_start_xmit = hostap_mgmt_start_xmit;
dev->type = ARPHRD_IEEE80211;
dev->header_ops = &hostap_80211_ops;
} else {
dev->hard_start_xmit = hostap_data_start_xmit;
}

dev->mtu = local->mtu;
if (!main_dev) {
if (type != HOSTAP_INTERFACE_MASTER) {
/* use main radio device queue */
dev->tx_queue_len = 0;
}
Expand All @@ -910,10 +917,6 @@ static int hostap_enable_hostapd(local_info_t *local, int rtnl_locked)
if (local->apdev == NULL)
return -ENOMEM;

local->apdev->hard_start_xmit = hostap_mgmt_start_xmit;
local->apdev->type = ARPHRD_IEEE80211;
local->apdev->header_ops = &hostap_80211_ops;

return 0;
}

Expand Down

0 comments on commit e70e289

Please sign in to comment.