Search Linux Wireless

Re: [PATCH 2/2] mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command

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

 



On Fri, 2014-11-07 at 10:22 +0200, Patrik Flykt wrote:

> +static int hwsim_dump_radio_nl(struct sk_buff *skb,
> +			       struct netlink_callback *cb)
> +{
> +	struct mac80211_hwsim_data *data = NULL;
> +
> +	spin_lock_bh(&hwsim_radio_lock);
> +
> +	list_for_each_entry(data, &hwsim_radios, list)
> +		mac80211_hwsim_get_radio(skb, data,
> +					 NETLINK_CB(cb->skb).portid,
> +					 cb->nlh->nlmsg_seq, cb, NLM_F_MULTI);
> +
> +	spin_unlock_bh(&hwsim_radio_lock);

Err, I don't think this is how dump works?

Try dumping a few hundred radios this way.

johannes

--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux