diff options
author | Luis Carlos Cobo <luisca@cozybit.com> | 2008-02-29 17:30:32 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-06 16:40:50 -0500 |
commit | aa2b5928433ce6ba98cf31ab048c7882aeae56a3 (patch) | |
tree | a1dcf816d554a94491e5326e6e86947a7ee97c2c /net/mac80211/mesh_hwmp.c | |
parent | 4f5d4c4da89c7aa0fa194a7fd3e52233067932ea (diff) |
mac80211: clean up use of endianness conversion functions
Signed-off-by: Luis Carlos Cobo <luisca@cozybit.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_hwmp.c')
-rw-r--r-- | net/mac80211/mesh_hwmp.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index 3ee46e43ead9..c8c7d9aa4b94 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c | |||
@@ -449,9 +449,9 @@ static void hwmp_preq_frame_process(struct net_device *dev, | |||
449 | ttl = ifsta->mshcfg.dot11MeshTTL; | 449 | ttl = ifsta->mshcfg.dot11MeshTTL; |
450 | if (ttl != 0) | 450 | if (ttl != 0) |
451 | mesh_path_sel_frame_tx(MPATH_PREP, 0, dst_addr, | 451 | mesh_path_sel_frame_tx(MPATH_PREP, 0, dst_addr, |
452 | __cpu_to_le32(dst_dsn), 0, orig_addr, | 452 | cpu_to_le32(dst_dsn), 0, orig_addr, |
453 | __cpu_to_le32(orig_dsn), mgmt->sa, 0, ttl, | 453 | cpu_to_le32(orig_dsn), mgmt->sa, 0, ttl, |
454 | __cpu_to_le32(lifetime), __cpu_to_le32(metric), | 454 | cpu_to_le32(lifetime), cpu_to_le32(metric), |
455 | 0, dev); | 455 | 0, dev); |
456 | else | 456 | else |
457 | ifsta->mshstats.dropped_frames_ttl++; | 457 | ifsta->mshstats.dropped_frames_ttl++; |
@@ -472,10 +472,10 @@ static void hwmp_preq_frame_process(struct net_device *dev, | |||
472 | preq_id = PREQ_IE_PREQ_ID(preq_elem); | 472 | preq_id = PREQ_IE_PREQ_ID(preq_elem); |
473 | hopcount = PREQ_IE_HOPCOUNT(preq_elem) + 1; | 473 | hopcount = PREQ_IE_HOPCOUNT(preq_elem) + 1; |
474 | mesh_path_sel_frame_tx(MPATH_PREQ, flags, orig_addr, | 474 | mesh_path_sel_frame_tx(MPATH_PREQ, flags, orig_addr, |
475 | __cpu_to_le32(orig_dsn), dst_flags, dst_addr, | 475 | cpu_to_le32(orig_dsn), dst_flags, dst_addr, |
476 | __cpu_to_le32(dst_dsn), dev->broadcast, | 476 | cpu_to_le32(dst_dsn), dev->broadcast, |
477 | hopcount, ttl, __cpu_to_le32(lifetime), | 477 | hopcount, ttl, cpu_to_le32(lifetime), |
478 | __cpu_to_le32(metric), __cpu_to_le32(preq_id), | 478 | cpu_to_le32(metric), cpu_to_le32(preq_id), |
479 | dev); | 479 | dev); |
480 | ifsta->mshstats.fwded_frames++; | 480 | ifsta->mshstats.fwded_frames++; |
481 | } | 481 | } |
@@ -531,9 +531,9 @@ static void hwmp_prep_frame_process(struct net_device *dev, | |||
531 | orig_dsn = PREP_IE_ORIG_DSN(prep_elem); | 531 | orig_dsn = PREP_IE_ORIG_DSN(prep_elem); |
532 | 532 | ||
533 | mesh_path_sel_frame_tx(MPATH_PREP, flags, orig_addr, | 533 | mesh_path_sel_frame_tx(MPATH_PREP, flags, orig_addr, |
534 | __cpu_to_le32(orig_dsn), 0, dst_addr, | 534 | cpu_to_le32(orig_dsn), 0, dst_addr, |
535 | __cpu_to_le32(dst_dsn), mpath->next_hop->addr, hopcount, ttl, | 535 | cpu_to_le32(dst_dsn), mpath->next_hop->addr, hopcount, ttl, |
536 | __cpu_to_le32(lifetime), __cpu_to_le32(metric), | 536 | cpu_to_le32(lifetime), cpu_to_le32(metric), |
537 | 0, dev); | 537 | 0, dev); |
538 | rcu_read_unlock(); | 538 | rcu_read_unlock(); |
539 | sdata->u.sta.mshstats.fwded_frames++; | 539 | sdata->u.sta.mshstats.fwded_frames++; |
@@ -566,7 +566,7 @@ static void hwmp_perr_frame_process(struct net_device *dev, | |||
566 | mpath->flags &= ~MESH_PATH_ACTIVE; | 566 | mpath->flags &= ~MESH_PATH_ACTIVE; |
567 | mpath->dsn = dst_dsn; | 567 | mpath->dsn = dst_dsn; |
568 | spin_unlock_bh(&mpath->state_lock); | 568 | spin_unlock_bh(&mpath->state_lock); |
569 | mesh_path_error_tx(dst_addr, __cpu_to_le32(dst_dsn), | 569 | mesh_path_error_tx(dst_addr, cpu_to_le32(dst_dsn), |
570 | dev->broadcast, dev); | 570 | dev->broadcast, dev); |
571 | } else | 571 | } else |
572 | spin_unlock_bh(&mpath->state_lock); | 572 | spin_unlock_bh(&mpath->state_lock); |
@@ -745,10 +745,10 @@ void mesh_path_start_discovery(struct net_device *dev) | |||
745 | 745 | ||
746 | spin_unlock_bh(&mpath->state_lock); | 746 | spin_unlock_bh(&mpath->state_lock); |
747 | mesh_path_sel_frame_tx(MPATH_PREQ, 0, dev->dev_addr, | 747 | mesh_path_sel_frame_tx(MPATH_PREQ, 0, dev->dev_addr, |
748 | __cpu_to_le32(ifsta->dsn), dst_flags, mpath->dst, | 748 | cpu_to_le32(ifsta->dsn), dst_flags, mpath->dst, |
749 | __cpu_to_le32(mpath->dsn), dev->broadcast, 0, | 749 | cpu_to_le32(mpath->dsn), dev->broadcast, 0, |
750 | ttl, __cpu_to_le32(lifetime), 0, | 750 | ttl, cpu_to_le32(lifetime), 0, |
751 | __cpu_to_le32(ifsta->preq_id++), dev); | 751 | cpu_to_le32(ifsta->preq_id++), dev); |
752 | mod_timer(&mpath->timer, jiffies + mpath->discovery_timeout); | 752 | mod_timer(&mpath->timer, jiffies + mpath->discovery_timeout); |
753 | 753 | ||
754 | enddiscovery: | 754 | enddiscovery: |