Return-path: Received: from mail-lf0-f42.google.com ([209.85.215.42]:40160 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751764AbeEGEkq (ORCPT ); Mon, 7 May 2018 00:40:46 -0400 Received: by mail-lf0-f42.google.com with SMTP id p85-v6so3178781lfg.7 for ; Sun, 06 May 2018 21:40:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1504531173.27801.0.camel@sipsolutions.net> From: Greg Maitz Date: Mon, 7 May 2018 14:40:44 +1000 Message-ID: (sfid-20180507_064049_912066_EB47047C) Subject: Re: Incorrect mesh path seq num To: Thomas Pedersen Cc: Johannes Berg , linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org List-ID: Yes, I confirmed it to be due to mismatched structures of ieee80211_rann_ie between the two versions. Issue resolved. On Sat, Sep 9, 2017 at 5:58 AM, Thomas Pedersen wrote: > On Mon, Sep 4, 2017 at 6:19 AM, Johannes Berg wrote: >> On Fri, 2017-09-01 at 13:07 -0700, Thomas Pedersen wrote: >>> On Thu, Aug 31, 2017 at 11:30 PM, Greg Maitz >>> wrote: >>> > Hi guys, >>> > >>> > I'm seeing a problem when I work on the wireless mesh between two >>> > linux devices. The root node has 3.18 kernel while the next hop >>> > station runs 2.6.37 kernel. I found the mpath->sn value is >>> > incorrect >>> > most of the time on the device having 2.6.37 kernel. After >>> > examining >>> > the code, in function hwmp_route_info_get [mesh_hwmp.c], after >>> > mesh_path_lookup, the sequence number (i.e, mpath->sn) is >>> > incorrect. >>> > For instance, I see mpath->sn having value 0x30950000. It should be >>> > 0x9530, while the orig_sn is having value 0x9531. >>> >>> Looks like an endianess bug. Are you testing on two platforms of >>> different endianess? >> >> Even if that's the case, wouldn't it mean some kind of conversion is >> missing somewhere? > > Yes. I looked for a missing conversion, but couldn't find it. > > Greg, where / how are you printing mpath->sn? mpath dump or a printk you added? > > -- > thomas