Return-path: Received: from ivanich.tenet.odessa.ua ([85.238.100.22]:46833 "EHLO ivanich.org.ua" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754145Ab2GEUYb convert rfc822-to-8bit (ORCPT ); Thu, 5 Jul 2012 16:24:31 -0400 From: Ivan Ivanich To: Larry Finger Cc: wireless Subject: Re: Trial change to rtl8192ce used as AP Date: Thu, 05 Jul 2012 23:24:24 +0300 Message-ID: <1670791.qBDPst6NTM@ivanich.org.ua> (sfid-20120705_222435_408875_6CE79DB4) In-Reply-To: <4FF5F600.9040900@lwfinger.net> References: <4FF5F600.9040900@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Sender: linux-wireless-owner@vger.kernel.org List-ID: On Четверг, 05-июл-2012 15:16:00 Larry Finger wrote: > Ivan, > > The following patch is suggested by the code-analysis tool cppcheck as the > test is always false. As it will not affect STA usage, I have no way to > test the change. Could you please do so? > > Thanks, > > Larry > > > Index: wireless-testing/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c > =================================================================== > --- wireless-testing.orig/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c > +++ wireless-testing/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c > @@ -1097,7 +1097,7 @@ static int _rtl92ce_set_media_status(str > > rtl_write_byte(rtlpriv, (MSR), bt_msr); > rtlpriv->cfg->ops->led_control(hw, ledaction); > - if ((bt_msr & 0xfc) == MSR_AP) > + if ((bt_msr & 0x03) == MSR_AP) > rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); > else > rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x66); Yes, compiling now, for some reason it doesn't apply cleanyl so I manualy changed this line. And what exactly I should test?