[PATCH 12/12] Staging: stlc45xx: convert config_interface to bss_info_changed, fixing a build error

Greg KH greg at kroah.com
Tue Jul 14 04:00:55 UTC 2009


On Mon, Jul 13, 2009 at 04:32:36PM +0200, Jiri Slaby wrote:
> On 07/13/2009 12:45 AM, Greg KH wrote:
> > From: Alexander Beregalov <a.beregalov at gmail.com>
> > 
> > See commit 2d0ddec5b2b (mac80211: unify config_interface and
> > bss_info_changed)
> > 
> > This fixes a build error.
> > 
> > Signed-off-by: Alexander Beregalov <a.beregalov at gmail.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
> > ---
> >  drivers/staging/stlc45xx/stlc45xx.c |   27 ++++++++-------------------
> >  1 files changed, 8 insertions(+), 19 deletions(-)
> > 
> > diff --git a/drivers/staging/stlc45xx/stlc45xx.c b/drivers/staging/stlc45xx/stlc45xx.c
> > index cfdaac9..a137c78 100644
> > --- a/drivers/staging/stlc45xx/stlc45xx.c
> > +++ b/drivers/staging/stlc45xx/stlc45xx.c
> ...
> > @@ -2295,6 +2277,14 @@ static void stlc45xx_op_bss_info_changed(struct ieee80211_hw *hw,
> >  {
> >  	struct stlc45xx *stlc = hw->priv;
> >  
> > +	stlc45xx_debug(DEBUG_FUNC, "%s", __func__);
> > +	mutex_lock(&stlc->mutex);
> > +
> > +	memcpy(stlc->bssid, info->bssid, ETH_ALEN);
> > +	stlc45xx_tx_setup(stlc);
> > +
> > +	mutex_unlock(&stlc->mutex);
> > +
> 
> Should this be inside
> if (changes & BSS_CHANGED_BSSID)
> block?

I don't know, is that a requirement here?

If so, care to send a patch to do so?

thanks,

greg k-h



More information about the devel mailing list