Search Linux Wireless

Re: [PATCH v2 2/4] cfg80211: Add cfg80211_get_bss_ht to also match HT configuration

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

 



On Monday, August 29, 2011 16:30:41 Alexander Simon wrote:
> +               if (channel) {
> +                       if (bss->pub.channel != channel)
> +                               continue;
> +                       if (check_ht) {
> +                               struct ieee80211_ht_info *ht_info;
> +                               ht_info = (struct ieee80211_ht_info *)
> +                                       ieee80211_bss_get_ie(&bss->pub,
> +                                                      WLAN_EID_HT_INFORMATION); 
> +                               if (!ht_info)
> +                                       continue;
> +                               if (ht_mode == NL80211_CHAN_HT40MINUS &&
> +                                             !(ht_info->ht_param &
> +                                             IEEE80211_HT_PARAM_CHA_SEC_BELOW))
> +                                       continue;
> +                               if (ht_mode == NL80211_CHAN_HT40PLUS &&
> +                                             !(ht_info->ht_param &
> +                                             IEEE80211_HT_PARAM_CHA_SEC_ABOVE))
> +                                       continue;
> +                       }
> +               }

What is the idea behind only checking the ht mode if a channel was specified ?
Is see no immediate need for this dependency - maybe I overlooked something ?

Cheers,
Marek

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