2012-11-06 21:46:19

by Chaoxing Lin

[permalink] [raw]
Subject: RE: minor bug on these three macros for mesh

Should be two not three.
disc_timeout_jiff()
root_path_confirmation_jiffies()

-----Original Message-----
From: Chaoxing Lin
Sent: Tuesday, November 06, 2012 4:44 PM
To: [email protected]
Subject: minor bug on these three macros for mesh

Net/mac80211/mesh_hwmp.c

#define max_preq_retries(s) (s->u.mesh.mshcfg.dot11MeshHWMPmaxPREQretries)
#define disc_timeout_jiff(s) \
msecs_to_jiffies(sdata->u.mesh.mshcfg.min_discovery_timeout)
#define root_path_confirmation_jiffies(s) \
msecs_to_jiffies(sdata->u.mesh.mshcfg.dot11MeshHWMPconfirmationInterval)


The "sdata" in these 3 macros should be "s".
For now, code just happens to work since caller always passes in "sdata"