Return-path: Received: from sabertooth02.qualcomm.com ([65.197.215.38]:10463 "EHLO sabertooth02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754000AbcHSD4m (ORCPT ); Thu, 18 Aug 2016 23:56:42 -0400 From: "Pedersen, Thomas" To: Guy Mishol CC: "linux-wireless@vger.kernel.org" Subject: Re: [PATCH] wlcore: mesh: add zone time sync support Date: Thu, 18 Aug 2016 16:42:41 +0000 Message-ID: <1471538527.3432.21.camel@qca.qualcomm.com> (sfid-20160819_055707_187644_58281E2E) References: <20160808085706.22668-1-guym@ti.com> In-Reply-To: <20160808085706.22668-1-guym@ti.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: T24gTW9uLCAyMDE2LTA4LTA4IGF0IDExOjU3ICswMzAwLCBHdXkgTWlzaG9sIHdyb3RlOg0KPiBB ZGQgem9uZSB0aW1lIHN5bmMgc3VwcG9ydCBmb3IgbWVzaCByb2xlLg0KPiBUaGlzIGFsbG93cyB0 byBjb25maWd1cmUgdGhlIG1lc2ggcGVlcg0KPiBtYXN0ZXIgb2YgZWFjaCB6b25lIGZvciB0aW1l IHN5bmNocm9uaXphdGlvbi4NCg0KV2hhdCBpcyB0aGlzPyBtYWM4MDIxMSBhbHJlYWR5IHRyaWVz IHRvIG1haW50YWluIFRTRiBzeW5jIHdpdGggbWVzaA0KcGVlcnMgaWYgZ2V0L3NldCBUU0Ygb3Bz IGFyZSBzdXBwb3J0ZWQgYnkgdGhlIGRyaXZlci4NCg0KPiBTaWduZWQtb2ZmLWJ5OiBHdXkgTWlz aG9sIDxndXltQHRpLmNvbT4NCj4gLS0tDQo+ICBkcml2ZXJzL25ldC93aXJlbGVzcy90aS93bDE4 eHgvYWN4LmMgICAgIHwgMjkgKysrKysrKysrKysrKysrKw0KPiAgZHJpdmVycy9uZXQvd2lyZWxl c3MvdGkvd2wxOHh4L2FjeC5oICAgICB8IDEzICsrKysrKysNC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