Search Linux Wireless

Re: [PATCH 1/2] mac80211: add explicit monitor interface if needed

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

 



On Tue, 2012-04-03 at 15:22 +0300, Eliad Peller wrote:

> > @@ -266,6 +319,12 @@ static int ieee80211_do_open(struct net_
> >                        break;
> >                }
> >
> > +               if (local->monitors == 0 && local->open_count == 0) {
> > +                       res = ieee80211_add_virtual_monitor(local);
> > +                       if (res)
> > +                               return res;
> 
> you probably have to goto instead (to clean up properly - drv_stop etc.).

Hm, good catch, this is a bit confusing. I'll do that, and then post
another patch to clean up the error paths a bit.

johannes

--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux