Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] mac80211: Fix macro definitions in Mesh
@ 2012-11-23  1:59 Chun-Yeow Yeoh
  2012-11-23  2:42 ` Thomas Pedersen
  0 siblings, 1 reply; 3+ messages in thread
From: Chun-Yeow Yeoh @ 2012-11-23  1:59 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, linville, Chun-Yeow Yeoh

Macro definitions should be static inlines.

Reported by: Chaoxing Lin <Chaoxing.Lin@ultra-3eti.com>
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
---
 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 47aeee2..5d3e965 100644
--- a/net/mac80211/mesh_hwmp.c
+++ b/net/mac80211/mesh_hwmp.c
@@ -88,9 +88,9 @@ static inline u32 u16_field_get(u8 *preq_elem, int offset, bool ae)
 	(msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPpreqMinInterval))
 #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)
+	msecs_to_jiffies(s->u.mesh.mshcfg.min_discovery_timeout)
 #define root_path_confirmation_jiffies(s) \
-	msecs_to_jiffies(sdata->u.mesh.mshcfg.dot11MeshHWMPconfirmationInterval)
+	msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPconfirmationInterval)
 
 enum mpath_frame_type {
 	MPATH_PREQ = 0,
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mac80211: Fix macro definitions in Mesh
  2012-11-23  1:59 [PATCH] mac80211: Fix macro definitions in Mesh Chun-Yeow Yeoh
@ 2012-11-23  2:42 ` Thomas Pedersen
  2012-11-23 11:18   ` Kalle Valo
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Pedersen @ 2012-11-23  2:42 UTC (permalink / raw)
  To: Chun-Yeow Yeoh; +Cc: linux-wireless, johannes, linville

On Thu, Nov 22, 2012 at 5:59 PM, Chun-Yeow Yeoh <yeohchunyeow@gmail.com> wrote:
> Macro definitions should be static inlines.

Then maybe this patch should do that as well? :)

> Reported by: Chaoxing Lin <Chaoxing.Lin@ultra-3eti.com>
> Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
> ---
>  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 47aeee2..5d3e965 100644
> --- a/net/mac80211/mesh_hwmp.c
> +++ b/net/mac80211/mesh_hwmp.c
> @@ -88,9 +88,9 @@ static inline u32 u16_field_get(u8 *preq_elem, int offset, bool ae)
>         (msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPpreqMinInterval))
>  #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)
> +       msecs_to_jiffies(s->u.mesh.mshcfg.min_discovery_timeout)
>  #define root_path_confirmation_jiffies(s) \
> -       msecs_to_jiffies(sdata->u.mesh.mshcfg.dot11MeshHWMPconfirmationInterval)
> +       msecs_to_jiffies(s->u.mesh.mshcfg.dot11MeshHWMPconfirmationInterval)
>
>  enum mpath_frame_type {
>         MPATH_PREQ = 0,
> --
> 1.7.0.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mac80211: Fix macro definitions in Mesh
  2012-11-23  2:42 ` Thomas Pedersen
@ 2012-11-23 11:18   ` Kalle Valo
  0 siblings, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2012-11-23 11:18 UTC (permalink / raw)
  To: Thomas Pedersen; +Cc: Chun-Yeow Yeoh, linux-wireless, johannes, linville

Thomas Pedersen <thomas@cozybit.com> writes:

> On Thu, Nov 22, 2012 at 5:59 PM, Chun-Yeow Yeoh <yeohchunyeow@gmail.com> wrote:
>> Macro definitions should be static inlines.
>
> Then maybe this patch should do that as well? :)

Only one logical change per patch ;)

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-23 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23  1:59 [PATCH] mac80211: Fix macro definitions in Mesh Chun-Yeow Yeoh
2012-11-23  2:42 ` Thomas Pedersen
2012-11-23 11:18   ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox