summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_hwmp.c
diff options
context:
space:
mode:
authormonthadar <monthadar@FreeBSD.org>2012-05-01 16:06:20 +0000
committermonthadar <monthadar@FreeBSD.org>2012-05-01 16:06:20 +0000
commit7c47930be08cd948c61d346d32ecbe0cb10a0e8d (patch)
tree905e8e411bb343475e7e3082683454a9c18bb668 /sys/net80211/ieee80211_hwmp.c
parent44ee994da682f487df396c7a1751fb8060995d0b (diff)
downloadFreeBSD-src-7c47930be08cd948c61d346d32ecbe0cb10a0e8d.zip
FreeBSD-src-7c47930be08cd948c61d346d32ecbe0cb10a0e8d.tar.gz
* Fixed PREQ flag field Adressing mode subfiled according to amendment specs;
Approved by: adria
Diffstat (limited to 'sys/net80211/ieee80211_hwmp.c')
-rw-r--r--sys/net80211/ieee80211_hwmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net80211/ieee80211_hwmp.c b/sys/net80211/ieee80211_hwmp.c
index 3e06ab8..ca31aea 100644
--- a/sys/net80211/ieee80211_hwmp.c
+++ b/sys/net80211/ieee80211_hwmp.c
@@ -824,7 +824,7 @@ hwmp_rootmode_cb(void *arg)
IEEE80211_NOTE(vap, IEEE80211_MSG_HWMP, vap->iv_bss,
"%s", "send broadcast PREQ");
- preq.preq_flags = IEEE80211_MESHPREQ_FLAGS_AM;
+ preq.preq_flags = 0;
if (ms->ms_flags & IEEE80211_MESHFLAGS_PORTAL)
preq.preq_flags |= IEEE80211_MESHPREQ_FLAGS_PR;
if (hs->hs_rootmode == IEEE80211_HWMP_ROOTMODE_PROACTIVE)
@@ -1092,8 +1092,8 @@ hwmp_recv_preq(struct ieee80211vap *vap, struct ieee80211_node *ni,
* Propagate the original PREQ.
* PREQ is unicast now to rttarg->rt_nexthop
*/
- ppreq.preq_flags &=
- ~IEEE80211_MESHPREQ_FLAGS_AM;
+ ppreq.preq_flags |=
+ IEEE80211_MESHPREQ_FLAGS_AM;
ppreq.preq_hopcount += 1;
ppreq.preq_ttl -= 1;
ppreq.preq_metric +=
@@ -1701,7 +1701,7 @@ hwmp_discover(struct ieee80211vap *vap,
* Try to discover the path for this node.
* Group addressed PREQ Case A
*/
- preq.preq_flags = IEEE80211_MESHPREQ_FLAGS_AM;
+ preq.preq_flags = 0;
preq.preq_hopcount = 0;
preq.preq_ttl = ms->ms_ttl;
preq.preq_id = ++hs->hs_preqid;
OpenPOWER on IntegriCloud