From patchwork Sun Feb 28 14:31:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Castet X-Patchwork-Id: 82800 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1SEgQsK013588 for ; Sun, 28 Feb 2010 14:42:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968383Ab0B1OmZ (ORCPT ); Sun, 28 Feb 2010 09:42:25 -0500 Received: from smtpfb2-g21.free.fr ([212.27.42.10]:53796 "EHLO smtpfb2-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968260Ab0B1OmY (ORCPT ); Sun, 28 Feb 2010 09:42:24 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 28 Feb 2010 14:42:26 +0000 (UTC) X-Greylist: delayed 654 seconds by postgrey-1.27 at vger.kernel.org; Sun, 28 Feb 2010 09:42:23 EST Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) by smtpfb2-g21.free.fr (Postfix) with ESMTP id E353FCA89CB for ; Sun, 28 Feb 2010 15:32:10 +0100 (CET) Received: from smtp2-g21.free.fr (localhost [127.0.0.1]) by smtp2-g21.free.fr (Postfix) with ESMTP id 0B79C4B00F5; Sun, 28 Feb 2010 15:31:24 +0100 (CET) Received: from [192.168.1.234] (cac94-1-81-57-151-96.fbx.proxad.net [81.57.151.96]) by smtp2-g21.free.fr (Postfix) with ESMTP id E819D4B0194; Sun, 28 Feb 2010 15:31:21 +0100 (CET) Message-ID: <4B8A7E39.3020809@free.fr> Date: Sun, 28 Feb 2010 15:31:21 +0100 From: matthieu castet User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.23) Gecko/20090823 SeaMonkey/1.1.18 MIME-Version: 1.0 To: linux-wireless@vger.kernel.org CC: Dan Williams Subject: [PATCH] airo : fix printing status info Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Index: airo.c =================================================================== --- 1/drivers/net/wireless/airo.c +++ 2/drivers/net/wireless/airo.c @@ -3325,20 +3325,27 @@ { u8 reason = status & 0xFF; - switch (status) { + switch (status & 0xFF00) { case STAT_NOBEACON: - airo_print_dbg(devname, "link lost (missed beacons)"); + switch (status) { + case STAT_NOBEACON: + airo_print_dbg(devname, "link lost (missed beacons)"); + break; + case STAT_MAXRETRIES: + case STAT_MAXARL: + airo_print_dbg(devname, "link lost (max retries)"); + break; + case STAT_FORCELOSS: + airo_print_dbg(devname, "link lost (local choice)"); + break; + case STAT_TSFSYNC: + airo_print_dbg(devname, "link lost (TSF sync lost)"); + break; + default: + airo_print_dbg(devname, "unknow status %x\n", status); + break; + } break; - case STAT_MAXRETRIES: - case STAT_MAXARL: - airo_print_dbg(devname, "link lost (max retries)"); - break; - case STAT_FORCELOSS: - airo_print_dbg(devname, "link lost (local choice)"); - break; - case STAT_TSFSYNC: - airo_print_dbg(devname, "link lost (TSF sync lost)"); - break; case STAT_DEAUTH: airo_print_dbg(devname, "deauthenticated (reason: %d)", reason); break; @@ -3353,7 +3360,11 @@ airo_print_dbg(devname, "authentication failed (reason: %d)", reason); break; + case STAT_ASSOC: + case STAT_REASSOC: + break; default: + airo_print_dbg(devname, "unknow status %x\n", status); break; } }