Search Linux Wireless

Re: [PATCH 7/7] ath5k: enable Power-Save Polls by setting the association ID

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

 



On Tue, Oct 6, 2009 at 8:44 PM, Luis R. Rodriguez
<lrodriguez@xxxxxxxxxxx> wrote:
> @@ -3226,6 +3225,14 @@ static void ath5k_bss_info_changed(struct ieee80211_hw *hw,
>                        set_beacon_filter(hw, sc->assoc);
>                ath5k_hw_set_ledstate(sc->ah, sc->assoc ?
>                        AR5K_LED_ASSOC : AR5K_LED_INIT);
> +               if (bss_conf->assoc) {
> +                       ATH5K_DBG(sc, ATH5K_DEBUG_ANY,
> +                                 "Bss Info ASSOC %d, bssid: %pM\n",
> +                                 bss_conf->aid, common->curbssid);
> +                       common->curaid = bss_conf->aid;
> +                       ath5k_hw_set_associd(ah);
> +                       /* Once ANI is available you would start it here */
> +               }

Just quick question - do we only want to call this if we are associated?

Or maybe we should call it to reset the mask if we are unassociated...

I wrote a patch a while ago to the ath5k list that did something similar,
but I did:

       if (changes & (BSS_CHANGED_BSSID | BSS_CHANGED_ASSOC)) {
               ath5k_hw_set_associd(ah, ah->ah_bssid, ah->ah_aid);
       }

Thus if it changed regardless of the reason why, we update the mask.

-- 
Bob Copeland %% www.bobcopeland.com
--
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