From patchwork Tue Apr 22 00:09:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 4027711 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B6A4F9F391 for ; Tue, 22 Apr 2014 00:10:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 069FC202B8 for ; Tue, 22 Apr 2014 00:10:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3612220265 for ; Tue, 22 Apr 2014 00:10:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754575AbaDVAKe (ORCPT ); Mon, 21 Apr 2014 20:10:34 -0400 Received: from mail-ee0-f49.google.com ([74.125.83.49]:44351 "EHLO mail-ee0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754083AbaDVAK2 (ORCPT ); Mon, 21 Apr 2014 20:10:28 -0400 Received: by mail-ee0-f49.google.com with SMTP id c41so3953541eek.22 for ; Mon, 21 Apr 2014 17:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UQmjgRDOSss/8dNqYB85jZCqQsJvI9r8iPHIDCpY8f0=; b=Ae0sIKl2it51q7zR+wy+MyFG0yReudGAasEBCEl9ixL4FiKVWg2PdL0nd6V9RBlprT Tb2OsYDsygJ9cSWGSn5pJYqxLaTOQGzp+Ewlr8PjUPWGGXAwyY7IseqxG1Kn+dFUlV9K XNTtHZVvjlJ/JM9JVFjgX3gI9bYKcAqKLrHUoOtiif2S8WX1tJOkErfGULf8KgJKt24z fLbbWz8c4Pu/3F2H1oRIg8Gp6B4xA+eZzfNwKCaOKpZvGDlx4cYZOXdPhe4Gprvd+6Kh Hl+BZSeAeWHiHElZijUo8H5iLImF2OxcdVcZDtakoJyA7wDTrWMvP9c7qx7wjXkZFpgy 83vg== X-Received: by 10.14.221.2 with SMTP id q2mr7116804eep.68.1398125427898; Mon, 21 Apr 2014 17:10:27 -0700 (PDT) Received: from localhost.localdomain (ip-88-119-226-136.static.b4net.lt. [88.119.226.136]) by mx.google.com with ESMTPSA id x45sm107851788eef.15.2014.04.21.17.10.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 17:10:27 -0700 (PDT) From: Grazvydas Ignotas To: linux-wireless@vger.kernel.org, "John W. Linville" Cc: Pavel Machek , =?UTF-8?q?Pali=20Roh=C3=A1r?= , David Gnedt , Grazvydas Ignotas Subject: [PATCH 3/4] wl1251: fix mixed up args for join Date: Tue, 22 Apr 2014 03:09:54 +0300 Message-Id: <1398125395-5579-4-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398125395-5579-1-git-send-email-notasas@gmail.com> References: <1398125395-5579-1-git-send-email-notasas@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The join arguments are mixed up, passing beacon_interval instead of channel and channel instead of beacon_interval. Fix them. Signed-off-by: Grazvydas Ignotas --- drivers/net/wireless/ti/wl1251/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ti/wl1251/main.c b/drivers/net/wireless/ti/wl1251/main.c index f557eb5..4e782f1 100644 --- a/drivers/net/wireless/ti/wl1251/main.c +++ b/drivers/net/wireless/ti/wl1251/main.c @@ -1226,8 +1226,8 @@ static void wl1251_op_bss_info_changed(struct ieee80211_hw *hw, if (ret < 0) goto out_sleep; - ret = wl1251_join(wl, wl->bss_type, wl->beacon_int, - wl->channel, wl->dtim_period); + ret = wl1251_join(wl, wl->bss_type, wl->channel, + wl->beacon_int, wl->dtim_period); if (ret < 0) goto out_sleep;