From driverdev-devel-bounces@linuxdriverproject.org Mon Jun  1 00:30:02 2015
Return-Path: <driverdev-devel-bounces@linuxdriverproject.org>
Delivered-To: unknown
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
	 by sloti33d1t02 (Cyrus 3.0-git-fastmail-11446) with LMTPA;
	 Sun, 31 May 2015 11:30:02 -0400
X-Sieve: CMU Sieve 2.4
X-Spam-score: 0.0
X-Spam-hits: BAYES_00 -1.9, FREEMAIL_FROM 0.001, RCVD_IN_DNSWL_MED -2.3, LANGUAGES en,
  BAYES_USED global, SA_VERSION 3.3.2
X-Spam-source: IP='140.211.166.137', Host='fraxinus.osuosl.org', Country='US',
  FromHeader='com', MailFrom='org'
X-Spam-charsets: plain='us-ascii'
X-Resolved-to: greg@kroah.com
X-Delivered-to: greg@kroah.com
X-Mail-from: driverdev-devel-bounces@linuxdriverproject.org
Received: from mx6 ([10.202.2.205])
  by compute3.internal (LMTPProxy); Sun, 31 May 2015 11:30:02 -0400
Received: from mx6.messagingengine.com (localhost [127.0.0.1])
	by mx6.nyi.internal (Postfix) with ESMTP id 58719B20D6A
	for <greg@kroah.com>; Sun, 31 May 2015 11:30:02 -0400 (EDT)
Received: from mx6.nyi.internal (localhost [127.0.0.1])
    by mx6.messagingengine.com (Authentication Milter) with ESMTP
    id AA3DB0F7DF1.0F1E7B20D36;
    Sun, 31 May 2015 11:30:02 -0400
Authentication-Results: mx6.messagingengine.com;
    dkim=fail (message has been altered; 2048-bit rsa key) header.d=gmail.com header.i=@gmail.com header.b=we0mShpD;
    dmarc=fail (p=none;has-list-id=yes) header.from=gmail.com;
    spf=none smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org smtp.helo=fraxinus.osuosl.org
Received-SPF: none (linuxdriverproject.org: No applicable sender policy available) receiver=mx6.messagingengine.com; identity=mailfrom; envelope-from="driverdev-devel-bounces@linuxdriverproject.org"; helo=fraxinus.osuosl.org; client-ip=140.211.166.137
Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137])
	by mx6.messagingengine.com (Postfix) with ESMTP id 0F1E7B20D36
	for <greg@kroah.com>; Sun, 31 May 2015 11:30:02 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
	by fraxinus.osuosl.org (Postfix) with ESMTP id 4AC1CA303B;
	Sun, 31 May 2015 15:30:00 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from fraxinus.osuosl.org ([127.0.0.1])
	by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id aSISdbAcYKGt; Sun, 31 May 2015 15:29:59 +0000 (UTC)
Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34])
	by fraxinus.osuosl.org (Postfix) with ESMTP id 1D8B5A2FDC;
	Sun, 31 May 2015 15:29:58 +0000 (UTC)
X-Original-To: devel@linuxdriverproject.org
X-Remote-Delivered-To: driverdev-devel@osuosl.org
Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138])
 by ash.osuosl.org (Postfix) with ESMTP id 9F62E1C0538
 for <devel@linuxdriverproject.org>; Sun, 31 May 2015 15:29:56 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by whitealder.osuosl.org (Postfix) with ESMTP id 98EE69175C
 for <devel@linuxdriverproject.org>; Sun, 31 May 2015 15:29:56 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from whitealder.osuosl.org ([127.0.0.1])
 by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id sJNyjCklO3b7 for <devel@linuxdriverproject.org>;
 Sun, 31 May 2015 15:29:56 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6
Received: from mail-vn0-f54.google.com (mail-vn0-f54.google.com
 [209.85.216.54])
 by whitealder.osuosl.org (Postfix) with ESMTPS id C79BB9172D
 for <devel@driverdev.osuosl.org>; Sun, 31 May 2015 15:29:55 +0000 (UTC)
Received: by vnbg129 with SMTP id g129so13395812vnb.9
 for <devel@driverdev.osuosl.org>; Sun, 31 May 2015 08:29:55 -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;
 bh=2RMZc9bnU2CTbMbj5bzGKmfXjefvCUcplVVUMzI5lNA=;
 b=we0mShpDBvfGpeRzXwL3qFT0zdQ32Q0E30wYyK9Qqs6Humbj0oqhaeFYpKz//yDrZJ
 KlMfbQ6+EAAdUXzNe/nHTjkZd3Wu8r0QSZ0Nuu620g53r6mKdeiMBbuzaQ8ksHfpi7HB
 U+NKuKaAlaT8J+TzLsmw3kuUsHjkGvHcAa+BmErRIg0k1ncngJrtlWFm8v+P9bsKFMXy
 ZFdQEerEjzeCgDB523JijTHfVCQWfYIDY2TflCIgGBGRJjhZ6OrfdKeLiAaP0nBQq9Zm
 K74LuBsq0Kv52Z9Lv8Tjh0G9j/EGVheqhrRLfxB1jf7r10B6Aebz2hdTRT3TqQrUjV8o
 VY1g==
X-Received: by 10.52.38.97 with SMTP id f1mr20799504vdk.25.1433086194953;
 Sun, 31 May 2015 08:29:54 -0700 (PDT)
Received: from debianG.lan ([190.188.245.61])
 by mx.google.com with ESMTPSA id aj20sm15552447vdc.21.2015.05.31.08.29.52
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Sun, 31 May 2015 08:29:54 -0700 (PDT)
From: Gaston Gonzalez <gascoar@gmail.com>
To: gregkh@linuxfoundation.org, cristina.opriceana@gmail.com,
 hamohammed.sa@gmail.com, gdonald@gmail.com, mahfouz.saif.elyazal@gmail.com,
 paul.gortmaker@windriver.com
Subject: [PATCH RESEND] staging: rtl8192u: ieee80211: Fix sparse endianness
 warnings
Date: Sun, 31 May 2015 12:17:48 -0300
Message-Id: <1433085468-20879-1-git-send-email-gascoar@gmail.com>
X-Mailer: git-send-email 2.1.4
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
X-BeenThere: driverdev-devel@linuxdriverproject.org
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id: Linux Driver Project Developer List
 <driverdev-devel.linuxdriverproject.org>
List-Unsubscribe: <http://driverdev.linuxdriverproject.org/mailman/options/driverdev-devel>, 
 <mailto:driverdev-devel-request@linuxdriverproject.org?subject=unsubscribe>
List-Archive: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/>
List-Post: <mailto:driverdev-devel@linuxdriverproject.org>
List-Help: <mailto:driverdev-devel-request@linuxdriverproject.org?subject=help>
List-Subscribe: <http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel>, 
 <mailto:driverdev-devel-request@linuxdriverproject.org?subject=subscribe>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: driverdev-devel-bounces@linuxdriverproject.org
Sender: "devel" <driverdev-devel-bounces@linuxdriverproject.org>
X-getmail-retrieved-from-mailbox: INBOX
Status: RO
X-Status: A
Content-Length: 1776
Lines: 38

Fix the following sparse warnings:

drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:663:32: warning: incorrect type in assignment (different base types)
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:663:32:    expected restricted __le16 [usertype] frame_ctl
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:663:32:    got int
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:664:50: warning: invalid assignment: |=
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:664:50:    left side has type restricted __le16
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:664:50:    right side has type int


Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
---
 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
index d2e8b12..0477ba1 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
@@ -660,2 +660,2 @@ inline struct sk_buff *ieee80211_authentication_req(struct ieee80211_network *be
 	auth = (struct ieee80211_authentication *)
 		skb_put(skb, sizeof(struct ieee80211_authentication));

-	auth->header.frame_ctl = IEEE80211_STYPE_AUTH;
-	if (challengelen) auth->header.frame_ctl |= IEEE80211_FCTL_WEP;
+	auth->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_AUTH);
+	if (challengelen)
+		auth->header.frame_ctl |= cpu_to_le16(IEEE80211_FCTL_WEP);

 	auth->header.duration_id = 0x013a; //FIXME

--
2.1.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

