Lines Matching refs:len
18 size_t len;
21 len = dev->manufacturer ? os_strlen(dev->manufacturer) : 0;
23 if (len == 0) {
34 wpabuf_put_be16(msg, len);
35 wpabuf_put_data(msg, dev->manufacturer, len);
42 size_t len;
45 len = dev->model_name ? os_strlen(dev->model_name) : 0;
47 if (len == 0) {
58 wpabuf_put_be16(msg, len);
59 wpabuf_put_data(msg, dev->model_name, len);
66 size_t len;
69 len = dev->model_number ? os_strlen(dev->model_number) : 0;
71 if (len == 0) {
82 wpabuf_put_be16(msg, len);
83 wpabuf_put_data(msg, dev->model_number, len);
90 size_t len;
93 len = dev->serial_number ? os_strlen(dev->serial_number) : 0;
95 if (len == 0) {
106 wpabuf_put_be16(msg, len);
107 wpabuf_put_data(msg, dev->serial_number, len);
160 size_t len;
163 len = dev->device_name ? os_strlen(dev->device_name) : 0;
165 if (len == 0) {
176 wpabuf_put_be16(msg, len);
177 wpabuf_put_data(msg, dev->device_name, len);