Search Linux Wireless

Re: [PATCH] wl12xx: set scan probe requests rate according to the no_cck flag

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

 



hi Guy,

On Sat, Oct 15, 2011 at 10:23 PM, Guy Eilam <guy@xxxxxxxxxx> wrote:
> Set the TX rate of probe requests during scanning according to the
> no_cck flag in the scan request struct.
>
> Signed-off-by: Guy Eilam <guy@xxxxxxxxxx>
> ---
[...]

> @@ -243,7 +242,12 @@ void wl1271_scan_stm(struct wl1271 *wl)
>
>        case WL1271_SCAN_STATE_2GHZ_ACTIVE:
>                band = IEEE80211_BAND_2GHZ;
> -               rate = wl1271_tx_min_rate_get(wl, wl->bitrate_masks[band]);
> +               if (wl->scan.req->no_cck)
> +                       rate = wl1271_tx_min_rate_get(wl,
> +                                                CONF_TX_RATE_MASK_BASIC_P2P);
> +               else
> +                       rate = wl1271_tx_min_rate_get(wl,
> +                                                CONF_TX_RATE_MASK_BASIC);

on a second thought, this seems a bit wrong.
i think we should consider the configured bitrate_masks when scanning.
maybe just mask-out the cck rates?

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