Search Linux Wireless

Re: [PATCHv2] mac80211: Fix basic rates for created IBSS networks

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

 



On Thu, 2010-05-27 at 09:41 +0900, Bruno Randolf wrote:

> > +	} else {
> > +		/*
> > +		 * If no rates were explicitly configured,
> > +		 * use the mandatory rate set for 11b or
> > +		 * 11a for maximum compatibility.
> > +		 */
> > +		struct ieee80211_supported_band *sband =
> > +			wiphy->bands[ibss.channel->band];
> > +		int j;
> > +		u32 flag = ibss.channel->band == IEEE80211_BAND_5GHZ ?
> > +				IEEE80211_RATE_MANDATORY_A :
> > +				IEEE80211_RATE_MANDATORY_B;
> > +
> > +		for (j = 0; j < sband->n_bitrates; j++) {
> > +			if (sband->bitrates[j].flags & flag)
> > +				ibss.basic_rates |= j;
> > +		}
> > +	}
> 
> couldn't we use ieee80211_mandatory_rates() here?

Yeah, but it would have to migrate to cfg80211.

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