Search Linux Wireless

Re: [PATCH 19/23] ath9k_htc: Handle BSSID/AID for multiple interfaces

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

 



On Tue, Feb 22, 2011 at 11:20:48PM +0530, Sujith wrote:
> Rajkumar Manoharan wrote:
> > > > > +	/*
> > > > > +	 * Set the HW AID/BSSID only for the first station interface
> > > > > +	 * or in IBSS mode.
> > > > > +	 */
> > > > > +	set_assoc = !!((priv->ah->opmode == NL80211_IFTYPE_ADHOC) ||
> > > > > +		       ((priv->ah->opmode == NL80211_IFTYPE_STATION) &&
> > > > > +			(priv->num_sta_vif == 1)));
> > > > > +
> > > > > +
> > > > Assume there are two station vifs where one is associated and another is not.
> > > > In such case aid and ani is not configured.
> > > 
> > > That's the intention...
> > >
> > I dont understand why not to start ani on multi-vifs.
> 
> * If an AP interface is present, ANI will be started when adding the interface.
>   If the AP interface is brought down, the remaining interfaces are checked to
>   see if any associated STA interfaces are present before stopping ANI.
> 
> * ANI is started for the first STA interface that makes the transition to associated
>   state. For subsequent managed interfaces, there is no point in re-starting ANI, since
>   it is already running. The check there takes care that ANI is not stopped when one
>   STA interface disconnects.
>
Assume num_sta_vif = 2 and none of the interfaces are associated. Now one of
vif moves to assoc state. set_assoc check would fail so ani will not be started.
Correct me if I am wrong?

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