Search Linux Wireless

Re: [PATCH 1/2] rtl8180: remove priv->mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 23, 2009 at 12:37:27AM +0100, Gábor Stefanik wrote:
> On Wed, Dec 23, 2009 at 12:13 AM, John W. Linville

> > @@ -661,12 +656,14 @@ static int rtl8180_add_interface(struct ieee80211_hw *dev,
> >  {
> >        struct rtl8180_priv *priv = dev->priv;
> >
> > -       if (priv->mode != NL80211_IFTYPE_MONITOR)
> > -               return -EOPNOTSUPP;
> > +       /*
> > +        * We only support one active interface at a time.
> > +        */
> > +       if (priv->vif != NULL)
> 
> if (priv->vif)
> This should be enough.

Sure, probably so.  FWIW, I think I copied that from some other driver.

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@xxxxxxxxxxxxx			might be all we have.  Be ready.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux