Search Linux Wireless

Re: [PATCH 8/8 v3] mac80211: re-add HT disabling

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

 



On Tue, Jun 30, 2009 at 05:22:53PM +0530, Johannes Berg wrote:
> The IEEE80211_STA_TKIP_WEP_USED flag is used internally to
> disable HT when WEP or TKIP are used. Now that cfg80211 is
> giving us the required information, we can set the flag
> appropriately again.
> 
> Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
> ---
>  net/mac80211/cfg.c |   15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)
> 
> --- wireless-testing.orig/net/mac80211/cfg.c    2009-06-30 13:25:43.000000000 +0200
> +++ wireless-testing/net/mac80211/cfg.c 2009-06-30 13:25:45.000000000 +0200
> @@ -1228,7 +1228,7 @@ static int ieee80211_assoc(struct wiphy
>                            struct cfg80211_assoc_request *req)
>  {
>         struct ieee80211_sub_if_data *sdata;
> -       int ret;
> +       int ret, i;
> 
>         sdata = IEEE80211_DEV_TO_SUB_IF(dev);
> 
> @@ -1236,6 +1236,19 @@ static int ieee80211_assoc(struct wiphy
>             !(sdata->u.mgd.flags & IEEE80211_STA_AUTHENTICATED))
>                 return -ENOLINK; /* not authenticated */
> 
> +       sdata->u.mgd.flags &= ~IEEE80211_STA_TKIP_WEP_USED;
> +
> +       if (req->crypto.cipher_group == WLAN_CIPHER_SUITE_WEP40 ||
> +           req->crypto.cipher_group == WLAN_CIPHER_SUITE_TKIP ||
> +           req->crypto.cipher_group == WLAN_CIPHER_SUITE_WEP104)
> +               sdata->u.mgd.flags |= IEEE80211_STA_TKIP_WEP_USED;

No, we have to disable HT only when WEP/TKIP is used as pairwise,
not used as group cipher.

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