From patchwork Tue Nov 10 02:04:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bing Zhao X-Patchwork-Id: 58915 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAA0fF8p022782 for ; Tue, 10 Nov 2009 00:41:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751773AbZKJAlI (ORCPT ); Mon, 9 Nov 2009 19:41:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753942AbZKJAlH (ORCPT ); Mon, 9 Nov 2009 19:41:07 -0500 Received: from dakia2.marvell.com ([65.219.4.35]:51576 "EHLO dakia2.marvell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944AbZKJAlG (ORCPT ); Mon, 9 Nov 2009 19:41:06 -0500 X-ASG-Debug-ID: 1257813671-3b8c005e0000-9xRsGE X-Barracuda-URL: http://10.68.76.222:80/cgi-bin/mark.cgi Received: from maili.marvell.com (maili.marvell.com [10.68.76.51]) by dakia2.marvell.com (Spam & Virus Firewall) with ESMTP id 93F5C14119B; Mon, 9 Nov 2009 16:41:11 -0800 (PST) Received: from maili.marvell.com (maili.marvell.com [10.68.76.51]) by dakia2.marvell.com with ESMTP id Y5riCrqEyy3VLwAy; Mon, 09 Nov 2009 16:41:11 -0800 (PST) Received: from localhost.localdomain (unknown [10.82.24.199]) by maili.marvell.com (Postfix) with ESMTP id 6F31E7ED76; Mon, 9 Nov 2009 16:41:11 -0800 (PST) From: Bing Zhao To: libertas-dev@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Bing Zhao , Amitkumar Karwar X-ASG-Orig-Subj: [PATCH 1/2] Libertas: coding style cleanup in ethtool.c Subject: [PATCH 1/2] Libertas: coding style cleanup in ethtool.c Date: Mon, 9 Nov 2009 18:04:12 -0800 Message-Id: <1257818653-13460-1-git-send-email-bzhao@marvell.com> X-Mailer: git-send-email 1.5.3.6 X-Barracuda-Connect: maili.marvell.com[10.68.76.51] X-Barracuda-Start-Time: 1257813671 X-Barracuda-Virus-Scanned: by dakia2.marvell.com at marvell.com X-Barracuda-Spam-Score: -1002.00 X-Barracuda-Spam-Status: No, SCORE=-1002.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1000.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/libertas/ethtool.c b/drivers/net/wireless/libertas/ethtool.c index 039b555..6efa388 100644 --- a/drivers/net/wireless/libertas/ethtool.c +++ b/drivers/net/wireless/libertas/ethtool.c @@ -175,10 +175,14 @@ static int lbs_ethtool_set_wol(struct net_device *dev, if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) return -EOPNOTSUPP; - if (wol->wolopts & WAKE_UCAST) criteria |= EHS_WAKE_ON_UNICAST_DATA; - if (wol->wolopts & WAKE_MCAST) criteria |= EHS_WAKE_ON_MULTICAST_DATA; - if (wol->wolopts & WAKE_BCAST) criteria |= EHS_WAKE_ON_BROADCAST_DATA; - if (wol->wolopts & WAKE_PHY) criteria |= EHS_WAKE_ON_MAC_EVENT; + if (wol->wolopts & WAKE_UCAST) + criteria |= EHS_WAKE_ON_UNICAST_DATA; + if (wol->wolopts & WAKE_MCAST) + criteria |= EHS_WAKE_ON_MULTICAST_DATA; + if (wol->wolopts & WAKE_BCAST) + criteria |= EHS_WAKE_ON_BROADCAST_DATA; + if (wol->wolopts & WAKE_PHY) + criteria |= EHS_WAKE_ON_MAC_EVENT; return lbs_host_sleep_cfg(priv, criteria, (struct wol_config *)NULL); }