* Re: [PATCH] mwifiex: use is_zero_ether_addr() instead of memcmp()
@ 2012-08-24 2:56 Wei Yongjun
2012-08-24 3:30 ` Bing Zhao
0 siblings, 1 reply; 5+ messages in thread
From: Wei Yongjun @ 2012-08-24 2:56 UTC (permalink / raw)
To: bzhao; +Cc: linville, yongjun_wei, linux-wireless, netdev
Hi Zhao,
On 08/24/2012 02:28 AM, Bing Zhao wrote:
> Hi Wei,
>
> Thanks for the patch.
>
>> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>>
>> Using is_zero_ether_addr() instead of directly use
>> memcmp() to determine if the ethernet address is all
>> zeros.
>>
>> spatch with a semantic match is used to found this problem.
>> (http://coccinelle.lip6.fr/)
> Apparently there are two more occurrences of zero_mac (scan.c:843)
This is part is special:
memcmp(scan_cfg_out->specific_bssid, &zero_mac, sizeof(zero_mac)))
&zero_mac equal zero_mac, but it missing to spatch.
> and bc_mac (sta_cmd.c:596).
> But I can fix them when I get the chance.
This part will be sent in other patch which using
is_broadcast_ether_addr()
>
>> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> Acked-by: Bing Zhao <bzhao@marvell.com>
>
> Thanks,
> Bing
>
>> ---
>> drivers/net/wireless/mwifiex/sta_cmdresp.c | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/wireless/mwifiex/sta_cmdresp.c b/drivers/net/wireless/mwifiex/sta_cmdresp.c
>> index 0b09004..a2a33dc 100644
>> --- a/drivers/net/wireless/mwifiex/sta_cmdresp.c
>> +++ b/drivers/net/wireless/mwifiex/sta_cmdresp.c
>> @@ -17,6 +17,8 @@
>> * this warranty disclaimer.
>> */
>>
>> +#include <linux/etherdevice.h>
>> +
>> #include "decl.h"
>> #include "ioctl.h"
>> #include "util.h"
>> @@ -736,7 +738,6 @@ static int mwifiex_ret_ibss_coalescing_status(struct mwifiex_private *priv,
>> {
>> struct host_cmd_ds_802_11_ibss_status *ibss_coal_resp =
>> &(resp->params.ibss_coalescing);
>> - u8 zero_mac[ETH_ALEN] = { 0, 0, 0, 0, 0, 0 };
>>
>> if (le16_to_cpu(ibss_coal_resp->action) == HostCmd_ACT_GEN_SET)
>> return 0;
>> @@ -745,7 +746,7 @@ static int mwifiex_ret_ibss_coalescing_status(struct mwifiex_private *priv,
>> "info: new BSSID %pM\n", ibss_coal_resp->bssid);
>>
>> /* If rsp has NULL BSSID, Just return..... No Action */
>> - if (!memcmp(ibss_coal_resp->bssid, zero_mac, ETH_ALEN)) {
>> + if (is_zero_ether_addr(ibss_coal_resp->bssid)) {
>> dev_warn(priv->adapter->dev, "new BSSID is NULL\n");
>> return 0;
>> }
>>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH] mwifiex: use is_zero_ether_addr() instead of memcmp()
2012-08-24 2:56 [PATCH] mwifiex: use is_zero_ether_addr() instead of memcmp() Wei Yongjun
@ 2012-08-24 3:30 ` Bing Zhao
2012-08-24 3:59 ` Which Mailing List Should I Use? J. C. Jones
0 siblings, 1 reply; 5+ messages in thread
From: Bing Zhao @ 2012-08-24 3:30 UTC (permalink / raw)
To: Wei Yongjun
Cc: linville@tuxdriver.com, yongjun_wei@trendmicro.com.cn,
linux-wireless@vger.kernel.org, netdev@vger.kernel.org
> > Apparently there are two more occurrences of zero_mac (scan.c:843)
>
> This is part is special:
>
> memcmp(scan_cfg_out->specific_bssid, &zero_mac, sizeof(zero_mac)))
>
> &zero_mac equal zero_mac, but it missing to spatch.
I will take care of this then.
Thanks,
Bing
^ permalink raw reply [flat|nested] 5+ messages in thread
* Which Mailing List Should I Use?
2012-08-24 3:30 ` Bing Zhao
@ 2012-08-24 3:59 ` J. C. Jones
2012-08-24 4:03 ` Pavel Roskin
0 siblings, 1 reply; 5+ messages in thread
From: J. C. Jones @ 2012-08-24 3:59 UTC (permalink / raw)
To: linux-wireless
Hi All,
I sent a message to ath9k-devel@lists.ath9k.org a few days ago (fragment of
message below), and it was rejected multiple times. I have not received any
messages from that list since.
Did I miss anything?
Best Regards,
-JC
Delivery to the following recipient failed permanently:
ath9k-devel@lists.ath9k.org
Technical details of permanent failure:
The recipient server did not accept our requests to connect. Learn more at
http://support.google.com/mail/bin/answer.py?answer=7720
[(0) lists.ath9k.org. [194.45.26.84]:25: Connection refused]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Which Mailing List Should I Use?
2012-08-24 3:59 ` Which Mailing List Should I Use? J. C. Jones
@ 2012-08-24 4:03 ` Pavel Roskin
2012-08-24 4:35 ` J. C. Jones
0 siblings, 1 reply; 5+ messages in thread
From: Pavel Roskin @ 2012-08-24 4:03 UTC (permalink / raw)
To: J. C. Jones; +Cc: linux-wireless
Quoting "J. C. Jones" <jaibuduvin@gmail.com>:
> Hi All,
> I sent a message to ath9k-devel@lists.ath9k.org a few days ago (fragment of
> message below), and it was rejected multiple times. I have not received any
> messages from that list since.
The ath5k and ath9k mailing lists are currently down. Their
administrator is on vacation now and cannot fix the server remotely.
Sorry for the inconvenience. Please use this list for now.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Which Mailing List Should I Use?
2012-08-24 4:03 ` Pavel Roskin
@ 2012-08-24 4:35 ` J. C. Jones
0 siblings, 0 replies; 5+ messages in thread
From: J. C. Jones @ 2012-08-24 4:35 UTC (permalink / raw)
To: 'Pavel Roskin'; +Cc: linux-wireless
Thanks so much Pavel. I was starting to feel embarrassed for not knowing what I was doing wrong. :D
Regards,
-JC
-----Original Message-----
From: Pavel Roskin [mailto:proski@gnu.org]
Sent: Thursday, August 23, 2012 11:04 PM
To: J. C. Jones
Cc: linux-wireless@vger.kernel.org
Subject: Re: Which Mailing List Should I Use?
Quoting "J. C. Jones" <jaibuduvin@gmail.com>:
> Hi All,
> I sent a message to ath9k-devel@lists.ath9k.org a few days ago
> (fragment of message below), and it was rejected multiple times. I
> have not received any messages from that list since.
The ath5k and ath9k mailing lists are currently down. Their administrator is on vacation now and cannot fix the server remotely.
Sorry for the inconvenience. Please use this list for now.
--
Regards,
Pavel Roskin
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2197 / Virus Database: 2437/5220 - Release Date: 08/23/12
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-24 4:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 2:56 [PATCH] mwifiex: use is_zero_ether_addr() instead of memcmp() Wei Yongjun
2012-08-24 3:30 ` Bing Zhao
2012-08-24 3:59 ` Which Mailing List Should I Use? J. C. Jones
2012-08-24 4:03 ` Pavel Roskin
2012-08-24 4:35 ` J. C. Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).