From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-iy0-f174.google.com ([209.85.210.174]:37571 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755673Ab1JTBDo (ORCPT ); Wed, 19 Oct 2011 21:03:44 -0400 Received: by mail-iy0-f174.google.com with SMTP id k3so2770432iae.19 for ; Wed, 19 Oct 2011 18:03:44 -0700 (PDT) From: Thomas Pedersen To: linux-wireless@vger.kernel.org Cc: anagar6@uic.edu, devel@lists.open80211s.org, Thomas Pedersen , johannes@sipsolutions.net, linville@tuxdriver.com Subject: [PATCH 6/6] mac80211: check mesh peer's WMM parameters Date: Wed, 19 Oct 2011 18:03:26 -0700 Message-Id: <1319072606-28291-7-git-send-email-thomas@cozybit.com> (sfid-20111020_030347_570724_19044D15) In-Reply-To: <1319072606-28291-1-git-send-email-thomas@cozybit.com> References: <1319072606-28291-1-git-send-email-thomas@cozybit.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: For now, disallow peering if our WMM parameters don't match our peer's. Signed-off-by: Thomas Pedersen --- net/mac80211/mesh.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index b3a125f..dd83c8f7 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -103,6 +103,13 @@ bool mesh_matches_local(struct ieee802_11_elems *ie, struct ieee80211_sub_if_dat ieee80211_ht_info_to_channel_type(ie->ht_info_elem))) goto mismatch; + if (ie->wmm_param) { + u8 wmm_local[sizeof(struct ieee80211_wmm_param_ie)]; + ieee80211_build_wmm_ie(&sdata->vif, wmm_local); + if (memcmp(ie->wmm_param, wmm_local, sizeof(wmm_local))) + goto mismatch; + } + return true; mismatch: return false; -- 1.7.5.4