diff options
author | Chun-Yeow Yeoh <yeohchunyeow@gmail.com> | 2013-04-03 05:49:53 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-08 03:16:58 -0400 |
commit | 0f71651f935d05557eac5862ff68dd2335b0ce0e (patch) | |
tree | 4a24304a30d133ecbad5b07c348cba27e8823572 /net | |
parent | 79ba1d8910f517c3bd39d794ddb1a5b4c03795c4 (diff) |
mac80211: fix the PREP mesh hwmp debug message
The mesh hwmp debug message is a bit confusing. The "sending PREP
to %p" should be the MAC address of mesh STA that has originated
the PREQ message and the "received PREP from %pM" should be the MAC
address of the mesh STA that has originated the PREP message.
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/mesh_hwmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index bdb8d3b14587..94904337784c 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c | |||
@@ -144,7 +144,7 @@ static int mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, | |||
144 | *pos++ = WLAN_EID_PREQ; | 144 | *pos++ = WLAN_EID_PREQ; |
145 | break; | 145 | break; |
146 | case MPATH_PREP: | 146 | case MPATH_PREP: |
147 | mhwmp_dbg(sdata, "sending PREP to %pM\n", target); | 147 | mhwmp_dbg(sdata, "sending PREP to %pM\n", orig_addr); |
148 | ie_len = 31; | 148 | ie_len = 31; |
149 | pos = skb_put(skb, 2 + ie_len); | 149 | pos = skb_put(skb, 2 + ie_len); |
150 | *pos++ = WLAN_EID_PREP; | 150 | *pos++ = WLAN_EID_PREP; |
@@ -661,7 +661,7 @@ static void hwmp_prep_frame_process(struct ieee80211_sub_if_data *sdata, | |||
661 | u32 target_sn, orig_sn, lifetime; | 661 | u32 target_sn, orig_sn, lifetime; |
662 | 662 | ||
663 | mhwmp_dbg(sdata, "received PREP from %pM\n", | 663 | mhwmp_dbg(sdata, "received PREP from %pM\n", |
664 | PREP_IE_ORIG_ADDR(prep_elem)); | 664 | PREP_IE_TARGET_ADDR(prep_elem)); |
665 | 665 | ||
666 | orig_addr = PREP_IE_ORIG_ADDR(prep_elem); | 666 | orig_addr = PREP_IE_ORIG_ADDR(prep_elem); |
667 | if (ether_addr_equal(orig_addr, sdata->vif.addr)) | 667 | if (ether_addr_equal(orig_addr, sdata->vif.addr)) |