svc_msg_send(svc_msg, hd);
}
+static void svc_set_route_send(struct gb_interface *interface,
+ struct greybus_host_device *hd)
+{
+ struct svc_msg *svc_msg;
+
+ svc_msg = svc_msg_alloc(SVC_FUNCTION_UNIPRO_NETWORK_MANAGEMENT);
+ if (!svc_msg)
+ return;
+
+ svc_msg->header.function_id = SVC_FUNCTION_UNIPRO_NETWORK_MANAGEMENT;
+ svc_msg->header.message_type = SVC_MSG_DATA;
+ svc_msg->header.payload_length =
+ cpu_to_le16(sizeof(struct svc_function_unipro_set_route));
+ svc_msg->management.set_route.device_id = interface->device_id;
+ svc_msg_send(svc_msg, hd);
+}
+
static void svc_management(struct svc_function_unipro_management *management,
int payload_length, struct greybus_host_device *hd)
{
return;
}
interface->device_id = management->link_up.device_id;
+ svc_set_route_send(interface, hd);
break;
case SVC_MANAGEMENT_AP_DEVICE_ID:
hd->device_id = management->ap_device_id.device_id;