Thread (26 messages) 26 messages, 3 authors, 2017-03-02

Re: [PATCH 099/306] mac80211-hwsim: notify user-space about channel change.

From: Ben Greear <hidden>
Date: 2017-02-27 21:01:07

On 02/23/2017 10:36 PM, Johannes Berg wrote:
quoted
+	msg_head = genlmsg_put(skb, 0, 0, &hwsim_genl_family, 0,
+			       HWSIM_CMD_NOTIFY);
I think you should use a more specific command name.
quoted
+	if (nla_put(skb, HWSIM_ATTR_ADDR_TRANSMITTER,
+		    ETH_ALEN, data->addresses[1].addr))
+		goto nla_put_failure;
and at least also add a more specific identifier like the radio ID.
quoted
+	if (data->channel)
+		center_freq = data->channel->center_freq;
+
+	if (nla_put_u32(skb, HWSIM_ATTR_FREQ, center_freq))
+		goto nla_put_failure;
and have the full channel definition


Also the indentation in the documentation didn't match the convention
used there.
Looks like there are two conventions used (see HWSIM_CMD_TX_INFO_FRAME,
and HWSIM_CMD_NEW_RADIO).  I guess you want it indented like the NEW_RADIO
command?

Thanks,
Ben
johannes

-- 
Ben Greear [off-list ref]
Candela Technologies Inc  http://www.candelatech.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help