Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1313223
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Gujulan Elango, Hari Prasath (H.)" <hgujulan@visteon.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] staging: rtl8192e: prefer using eth_broadcast_addr() |
| Date | Wed, 20 Jan 2016 14:30:02 +0100 |
| Message-ID | <qT0ZI-73U-5@gated-at.bofh.it> (permalink) |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=visteon.onmicrosoft.com; s=selector1-visteon-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=idlfN5DB7s/IXF7XMwf4BqzNhFZ6voN3yH4nHtpadOQ=; b=Bu6Ni2cpAiuif/JER+HCuGEFTd2kycNygl9PsF0I+7anQK3BM7VGwKFM99C3A78A0VytPaKlZZuwlogjk3hy8W85xVwz6h9OnulCUpHnalNs3gvT5Y9vGHhFsneOCv+Fn9i9uF8dxjrfkekNxO0yRjl1oqeJotptQPRxM1Q6+pI= |
| Thread-Topic | [PATCH] staging: rtl8192e: prefer using eth_broadcast_addr() |
| Thread-Index | AQHRU4NXEYBuQSsUrkiH40/5BNDiNw== |
| Accept-Language | en-US |
| Content-Language | en-US |
| Authentication-Results | spf=none (sender IP is ) smtp.mailfrom=hgujulan@visteon.com; |
| X-Ms-Exchange-Messagesentrepresentingtype | 1 |
| X-Originating-IP | [91.212.132.116] |
| X-Microsoft-Exchange-Diagnostics | 1;AMSPR06MB487;5:r/oQ+zLV9+znW/N2lBP1Ha4ajcyjzbj+BNRFY22vDv4u1yz77w6ieXxvP4Qbrc1/dEWtKAlNl4Y8K9enPopPMbvKUvoAQsEBM8bTRfDQFBAPVs+57ynH2ULHHUwfTr3o6OBl+MCODJO/Cs02DaB17w==;24:RZEWeg436uBLU5Q3WEFpVEnkCHVo6NiXS1Rjt3qfusj/O6Yw8qQgV0Tn8q+1gzXHh3kiuzTW39nlbxP8AfdxgGrfWB40Vl76rNl617Ld/ZE= |
| X-Microsoft-Antispam | UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AMSPR06MB487; |
| X-Ms-Office365-Filtering-Correlation-ID | 0eec2007-bb24-47ee-5036-08d3219a79c3 |
| X-Microsoft-Antispam-Prvs | <AMSPR06MB487E8D07CBF6EE6661DB26DCFC20@AMSPR06MB487.eurprd06.prod.outlook.com> |
| X-Exchange-Antispam-Report-Test | UriScan:(208512329853888); |
| X-Exchange-Antispam-Report-Cfa-Test | BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001)(10201501046);SRVR:AMSPR06MB487;BCL:0;PCL:0;RULEID:;SRVR:AMSPR06MB487; |
| X-Forefront-Prvs | 0827D7ACB9 |
| X-Forefront-Antispam-Report | SFV:NSPM;SFS:(10019020)(6009001)(199003)(189002)(102836003)(81156007)(586003)(2906002)(19580395003)(77096005)(97736004)(1096002)(106356001)(229853001)(86362001)(5002640100001)(105586002)(4326007)(2201001)(575784001)(1076002)(2900100001)(106116001)(2860100001)(3846002)(87936001)(19580405001)(66066001)(6116002)(122556002)(101416001)(189998001)(92566002)(40100003)(50986999)(5001960100002)(5004730100002)(1220700001)(5008740100001)(33656002)(11100500001)(54356999)(4001450100002)(10400500002)(33716001)(2501003)(5001770100001);DIR:OUT;SFP:1102;SCL:1;SRVR:AMSPR06MB487;H:DB5PR06MB1573.eurprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; |
| Received-Spf | None (protection.outlook.com: visteon.com does not designate permitted sender hosts) |
| Content-Type | text/plain; charset="us-ascii" |
| Content-ID | <41B7E06DCF69994B98F40C49BDDEBD65@eurprd06.prod.outlook.com> |
| Content-Transfer-Encoding | 8BIT |
| MIME-Version | 1.0 |
| X-Originatororg | visteon.com |
| X-Ms-Exchange-Crosstenant-Originalarrivaltime | 20 Jan 2016 13:06:13.9488 (UTC) |
| X-Ms-Exchange-Crosstenant-Fromentityheader | Hosted |
| X-Ms-Exchange-Crosstenant-ID | 7a147aaf-01ec-498c-80a1-e34a8c63c548 |
| X-Ms-Exchange-Transport-Crosstenantheadersstamped | AMSPR06MB487 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 28 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> |
| X-Original-Date | Wed, 20 Jan 2016 13:06:13 +0000 |
| X-Original-Message-ID | <20160120130716.GA11131@IND12F0122> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1313223 |
Show key headers only | View raw
From: Hari Prasath Gujulan Elango Prefer using the eth_broadcast_addr() instead of memset to broadcast address 0xFF to the array. Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com> --- drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index d0fedb0..2a57640 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -355,9 +355,9 @@ static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee) req->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_PROBE_REQ); req->header.duration_id = 0; - memset(req->header.addr1, 0xff, ETH_ALEN); + eth_broadcast_addr(req->header.addr1); ether_addr_copy(req->header.addr2, ieee->dev->dev_addr); - memset(req->header.addr3, 0xff, ETH_ALEN); + eth_broadcast_addr(req->header.addr3); tag = (u8 *) skb_put(skb, len + 2 + rate_len); -- 1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] staging: rtl8192e: prefer using eth_broadcast_addr() "Gujulan Elango, Hari Prasath (H.)" <hgujulan@visteon.com> - 2016-01-20 14:30 +0100
csiph-web