Search Linux Wireless

Re: [PATCH 2/2] ath6kl: Configure htcap in fw based on the channel type in AP mode

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

 



> >  
> > +static int ath6kl_set_channel(struct wiphy *wiphy, struct net_device *dev,
> > +			      struct ieee80211_channel *chan,
> > +			      enum nl80211_channel_type channel_type)
> > +{
> > +	struct ath6kl_vif *vif;
> > +
> > +	/*
> > +	 * 'dev' could be NULL if a channel change is required for the hardware
> > +	 * device itself, instead of a particular VIF.
> > +	 *
> > +	 * FIXME: To be handled properly when monitor mode is supported.
> > +	 */
> > +	if (!dev)
> > +		return -EBUSY;
> > +
> > +	vif = netdev_priv(dev);
> > +
> > +	if (!ath6kl_cfg80211_ready(vif))
> > +		return -EIO;
> > +
> > +	ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: center_freq=%u hw_value=%u\n",
> > +		   __func__, chan->center_freq, chan->hw_value);
> > +	vif->next_chan = chan->center_freq;
> > +	vif->next_ch_type = channel_type;
> > +	vif->next_ch_band = chan->band;
> 
> Why this indirection? Can't we just call ath6kl_set_htcap() here and
> thereby handle the STA case as well?

Station mode does not use set_channel for normal operation in ath6kl. Only when
a channel is set from user space (like iw) this will be called and as such it has
no use for station mode as of now. connect() is the right place to override fw ht
configuration in station mode.

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