Search Linux Wireless

Re: [PATCH 2/3] ath9k: Add change_interface callback

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

 



On Sat, Nov 27, 2010 at 12:18:05AM +0530, Johannes Berg wrote:
> On Fri, 2010-11-26 at 23:24 +0530, Rajkumar Manoharan wrote:
> 
> > +static int ath9k_change_interface(struct ieee80211_hw *hw,
> > +				  struct ieee80211_vif *vif,
> > +				  enum nl80211_iftype new_type,
> > +				  bool p2p)
> > +{
> > +	struct ath_wiphy *aphy = hw->priv;
> > +	struct ath_softc *sc = aphy->sc;
> > +	struct ath_common *common = ath9k_hw_common(sc->sc_ah);
> > +
> > +	ath_print(common, ATH_DBG_CONFIG, "Change Interface\n");
> > +	mutex_lock(&sc->mutex);
> > +
> > +	new_type = ieee80211_iftype_p2p(new_type, p2p);
> 
> I'm pretty sure you won't want that, and will just use new_type directly
> because you don't care about P2P or non-P2P as of now.
>
Yes and I missed to store new p2p bool value too ;) Thanks for pointing out.

--
Rajkumar
--
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