Search Linux Wireless

Re: [PATCH v3 1/2] wl12xx: configure probe-resp template according to notification

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

 



On Tue, Nov 8, 2011 at 17:13, Eliad Peller <eliad@xxxxxxxxxx> wrote:
> On Tue, Nov 8, 2011 at 4:36 PM, Arik Nemtsov <arik@xxxxxxxxxx> wrote:
>> When operating in AP-mode, replace our probe-response template when a
>> notification is recieved from mac80211. We preserve the "legacy" way of
>> configuring a probe-response according to beacon for IBSS mode and for
>> versions of hostapd that do not support this feature.
>>
>> Signed-off-by: Guy Eilam <guy@xxxxxxxxxx>
>> Signed-off-by: Arik Nemtsov <arik@xxxxxxxxxx>
>> ---
> [...]
>> +static int wl1271_ap_set_probe_resp_tmpl(struct wl1271 *wl, u32 rates)
>> +{
>> +       struct sk_buff *skb;
>> +       int ret;
>> +
>> +       skb = ieee80211_proberesp_get(wl->hw, wl->vif);
>> +       if (!skb)
>> +               return -EINVAL;
>> +
>> +       ret = wl1271_cmd_template_set(wl,
>> +                                     CMD_TEMPL_AP_PROBE_RESPONSE,
>> +                                     skb->data,
>> +                                     skb->len, 0,
>> +                                     rates);
>> +
>> +       dev_kfree_skb(skb);
>> +       return ret;
>> +}
>
> add a check for max template size?

There's already a check inside. There's a WARN_ON, and the template is
just truncated to the max size.
--
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