All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Emerson <emersonmde@gmail.com>
To: Jes Sorensen <Jes.Sorensen@redhat.com>
Cc: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org,
	linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8723au: changes stop ap mode to use reset function
Date: Fri, 2 Jan 2015 13:56:39 -0500	[thread overview]
Message-ID: <20150102185639.GA12315@gmail.com> (raw)
In-Reply-To: <wrfjoaqhmb91.fsf@redhat.com>

On Fri, Jan 02, 2015 at 10:51:38AM -0500, Jes Sorensen wrote:
> Matthew Emerson <emersonmde@gmail.com> writes:
> > Changes stop_ap_mode23a() to use rtw_reset_securitypriv23a. This makes
> > the code cleaner and fixes two checkpatch.pl errors, one line over 80
> > characters, and one spacing issue.
> >
> > Signed-off-by: Matthew Emerson <emersonmde@gmail.com>
> > ---
> >  drivers/staging/rtl8723au/core/rtw_ap.c | 6 ++----
> >  1 file changed, 2 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c
> > index e394d12c36b0..510ee212496f 100644
> > --- a/drivers/staging/rtl8723au/core/rtw_ap.c
> > +++ b/drivers/staging/rtl8723au/core/rtw_ap.c
> > @@ -1870,10 +1870,8 @@ void stop_ap_mode23a(struct rtw_adapter *padapter)
> >  	pmlmepriv->update_bcn = false;
> >  	pmlmeext->bstart_bss = false;
> >  
> > -	/* reset and init security priv , this can refine with rtw_reset_securitypriv23a */
> > -	memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv));
> > -	padapter->securitypriv.ndisauthtype = Ndis802_11AuthModeOpen;
> > -	padapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled;
> > +	/* reset and init security priv */
> > +	rtw_reset_securitypriv23a(padapter);
> 
> This is broken, rtw_reset_securitypriv23a() takes different actions
> based on the value of adapter->securitypriv.dot11AuthAlgrthm - you leave
> it at it's old value, which does not have the same effect as the above.
> 
> If anything you should remove the memset() and call
> rtw_reset_securitypriv23a() after the two assignments.
> 
> NACK
> 
> Jes

Thank you for you feedback! I had noticed that the two assignments above
(for .ndisauthtype and .ndisencryptstatus) take place in both branches
of the if statement in rtw_reset_securitypriv23a() so I thought removing
them here would be okay. I'll be sure to make the changes you suggested.

Thanks for your time,
Matthew Emerson

      reply	other threads:[~2015-01-02 18:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-29  2:22 [PATCH] staging: rtl8723au: changes stop ap mode to use reset function Matthew Emerson
2015-01-02 15:51 ` Jes Sorensen
2015-01-02 18:56   ` Matthew Emerson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150102185639.GA12315@gmail.com \
    --to=emersonmde@gmail.com \
    --cc=Jes.Sorensen@redhat.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.