Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp573710ybv; Wed, 5 Feb 2020 10:32:23 -0800 (PST) X-Google-Smtp-Source: APXvYqx7FKEqnLLbOiSVaYQCfRWk8AyYz5m4e9LsuMDcPjKNoJh6dCPwndpHhByFJoy1jGZVkePQ X-Received: by 2002:a9d:2647:: with SMTP id a65mr26983870otb.101.1580927543439; Wed, 05 Feb 2020 10:32:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580927543; cv=none; d=google.com; s=arc-20160816; b=miUnMljevTsU3EnyMoukjWFtSi58tueDEfmKKaeLGm2vi087cjhvtO/f9RZbKwyT0Q sA6esOMGK0+zUYZeTWsgY4ZM79xLFgmjeeytSHcCjKbh995tp/H0lVBrnXQk1VQd0rc2 2rkTCP0PBg/5Uf7cQQHoD7bhWKF7kf3ps918JrLMyE42DxfVhGMo90tWbzkNtvxn25E8 jcDxpuJZWQiG+C93PFgY7RujIzh2skaHrj0gUOcoAh83xWxiFgMCN5vVYw4IWkXJ4Azr z3491Jo7FCseJRO4W+6vK1ZtMYmeL9yJwI0O2RbfYFMizRjlGcpiaeFsel+Jf7Z/oJl2 GFew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xxlgbnU5pSZKUH3JfH939pFWVo6iRlJ+wxus9Y1Vfak=; b=ozrXu5oVG0tvhj+UD6hDKDQRME5rGl/PpAhe7MBpem+PwuiCVuGKKHxybtZLcFvtwe XpxaiK16TYUae7jV+EMJnTo5xVmU8JFK0Rt78VPKU1KCdjXHoY7I8hmrG/1L+DPeZKbL u1CVj5NQG2SClribVmL3SglggNxesK+ZmI+UBK7Tpky8ZpZS6wQ9uhr6u8wy1sVfE6lT q1jdiNtPIbNoRatKqFOOFu04jNKKR92Boe/NzTy7aacYlecp5RXLfsLfKr/yndp8fmVa iTZDE2djFDxemlKr2Pw5QC1y9Zm9nPx6fJGzqA54rpKnvG00/hIwPxiRh2Z5D1OGrLHG tpdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=oVpRXewE; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u23si185800otj.242.2020.02.05.10.32.04; Wed, 05 Feb 2020 10:32:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=oVpRXewE; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727415AbgBESbx (ORCPT + 99 others); Wed, 5 Feb 2020 13:31:53 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:16639 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727309AbgBESbx (ORCPT ); Wed, 5 Feb 2020 13:31:53 -0500 X-UUID: d94d3524aa2e478aa8d6672e92ac9058-20200206 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=xxlgbnU5pSZKUH3JfH939pFWVo6iRlJ+wxus9Y1Vfak=; b=oVpRXewEMkQmz2lTlwRsfnqfUx21siz6lK1fuRA3uB+rqi2tmsBsmWWk7OUhpLPzfYtDHE05OLFxmls5ljN1MTUs9ZprC/LuzgUHMDgoPQgIgchJie9kB7F6EI+5CVSelUT+jqgjPchNvJqh0VNpBoTH2zRg6NfePbjM39fCLvc=; X-UUID: d94d3524aa2e478aa8d6672e92ac9058-20200206 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2026006206; Thu, 06 Feb 2020 02:31:48 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 6 Feb 2020 02:32:46 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 6 Feb 2020 02:31:22 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , Evelyn Tsai , Chih-Min Chen , , , Ryder Lee Subject: [PATCH v2] mt76: mt7615: set proper length in strncmp Date: Thu, 6 Feb 2020 02:31:19 +0800 Message-ID: <06da8143b6baa77295abaf70907fb8e345e15e0e.1580927122.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org VXNlIHNpemVvZihoZHItPmZ3X3ZlcikgYXMgbWF4IGxlbi4NCg0KU2lnbmVkLW9mZi1ieTogUnlk ZXIgTGVlIDxyeWRlci5sZWVAbWVkaWF0ZWsuY29tPg0KLS0tDQpjaGFuZ2VzIHNpbmNlIHYyIC0g dXNlIHNpemVvZigpIGluc3RlYWQuDQotLS0NCiBkcml2ZXJzL25ldC93aXJlbGVzcy9tZWRpYXRl ay9tdDc2L210N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