Content-Type: multipart/mixed; boundary="===============8775590667694274802==" MIME-Version: 1.0 From: James Prestwood Subject: Re: [RFC 3/6] wiphy: integrate offchannel module Date: Mon, 22 Jun 2020 12:59:45 -0700 Message-ID: In-Reply-To: List-Id: To: iwd@lists.01.org --===============8775590667694274802== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Mon, 2020-06-22 at 14:44 -0500, Denis Kenzior wrote: > Hi James, > = > On 6/17/20 12:56 PM, James Prestwood wrote: > > Tie wiphy creation/destruction to offchannel > > --- > > src/wiphy.c | 7 +++++++ > > 1 file changed, 7 insertions(+) > > = > > diff --git a/src/wiphy.c b/src/wiphy.c > > index aef39549..7e58a402 100644 > > --- a/src/wiphy.c > > +++ b/src/wiphy.c > > @@ -53,6 +53,7 @@ > > #include "src/watchlist.h" > > #include "src/nl80211util.h" > > #include "src/nl80211cmd.h" > > +#include "src/offchannel.h" > > = > > #define EXT_CAP_LEN 10 > > = > > @@ -1235,6 +1236,9 @@ void wiphy_create_complete(struct wiphy > > *wiphy) > > wiphy_get_reg_domain(wiphy); > > = > > wiphy_print_basic_info(wiphy); > > + > > + if (wiphy->offchannel_tx_ok) > > + offchan_create_from_wiphy(wiphy); > = > Hmm, why? Isn't scanning always supported and hence you always want = > offchan_create to be called? Yeah, that was an oversight. > = > > } > > = > > bool wiphy_destroy(struct wiphy *wiphy) > = > Regards, > -Denis --===============8775590667694274802==--