diff options
author | Jasper Bryant-Greene <jasper@amiton.co.nz> | 2008-08-02 20:04:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:29:58 -0400 |
commit | f698d856f65c3fea091cc303a135967965c5b880 (patch) | |
tree | 94c7c2d561e5191646dc5798683c0aca97973773 /net/mac80211/tx.c | |
parent | fef1643bf0cdd092a52dc3378479e4811fd65152 (diff) |
replace net_device arguments with ieee80211_{local,sub_if_data} as appropriate
This patch replaces net_device arguments to mac80211 internal functions
with ieee80211_{local,sub_if_data} as appropriate.
It also does the same for many 802.11s mesh functions, and changes the
mesh path table to be indexed on sub_if_data rather than net_device.
If the mesh part needs to be a separate patch let me know, but since
mesh uses a lot of mac80211 functions which were being converted anyway,
the changes go hand-in-hand somewhat.
This patch probably does not convert all the functions which could be
converted, but it is a large chunk and followup patches will be
provided.
Signed-off-by: Jasper Bryant-Greene <jasper@amiton.co.nz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 85f3ba85c132..c413d4836afe 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -1327,7 +1327,7 @@ int ieee80211_master_start_xmit(struct sk_buff *skb, | |||
1327 | if (is_multicast_ether_addr(hdr->addr3)) | 1327 | if (is_multicast_ether_addr(hdr->addr3)) |
1328 | memcpy(hdr->addr1, hdr->addr3, ETH_ALEN); | 1328 | memcpy(hdr->addr1, hdr->addr3, ETH_ALEN); |
1329 | else | 1329 | else |
1330 | if (mesh_nexthop_lookup(skb, odev)) | 1330 | if (mesh_nexthop_lookup(skb, osdata)) |
1331 | return 0; | 1331 | return 0; |
1332 | if (memcmp(odev->dev_addr, hdr->addr4, ETH_ALEN) != 0) | 1332 | if (memcmp(odev->dev_addr, hdr->addr4, ETH_ALEN) != 0) |
1333 | IEEE80211_IFSTA_MESH_CTR_INC(&osdata->u.sta, | 1333 | IEEE80211_IFSTA_MESH_CTR_INC(&osdata->u.sta, |
@@ -1908,7 +1908,7 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, | |||
1908 | *pos++ = WLAN_EID_SSID; | 1908 | *pos++ = WLAN_EID_SSID; |
1909 | *pos++ = 0x0; | 1909 | *pos++ = 0x0; |
1910 | 1910 | ||
1911 | mesh_mgmt_ies_add(skb, sdata->dev); | 1911 | mesh_mgmt_ies_add(skb, sdata); |
1912 | 1912 | ||
1913 | num_beacons = &sdata->u.sta.num_beacons; | 1913 | num_beacons = &sdata->u.sta.num_beacons; |
1914 | } else { | 1914 | } else { |