diff options
Diffstat (limited to 'include/net/bluetooth/l2cap.h')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index 4b86c783976c..636724b203ee 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -131,31 +131,31 @@ struct l2cap_conninfo { | |||
131 | struct l2cap_hdr { | 131 | struct l2cap_hdr { |
132 | __le16 len; | 132 | __le16 len; |
133 | __le16 cid; | 133 | __le16 cid; |
134 | } __attribute__ ((packed)); | 134 | } __packed; |
135 | #define L2CAP_HDR_SIZE 4 | 135 | #define L2CAP_HDR_SIZE 4 |
136 | 136 | ||
137 | struct l2cap_cmd_hdr { | 137 | struct l2cap_cmd_hdr { |
138 | __u8 code; | 138 | __u8 code; |
139 | __u8 ident; | 139 | __u8 ident; |
140 | __le16 len; | 140 | __le16 len; |
141 | } __attribute__ ((packed)); | 141 | } __packed; |
142 | #define L2CAP_CMD_HDR_SIZE 4 | 142 | #define L2CAP_CMD_HDR_SIZE 4 |
143 | 143 | ||
144 | struct l2cap_cmd_rej { | 144 | struct l2cap_cmd_rej { |
145 | __le16 reason; | 145 | __le16 reason; |
146 | } __attribute__ ((packed)); | 146 | } __packed; |
147 | 147 | ||
148 | struct l2cap_conn_req { | 148 | struct l2cap_conn_req { |
149 | __le16 psm; | 149 | __le16 psm; |
150 | __le16 scid; | 150 | __le16 scid; |
151 | } __attribute__ ((packed)); | 151 | } __packed; |
152 | 152 | ||
153 | struct l2cap_conn_rsp { | 153 | struct l2cap_conn_rsp { |
154 | __le16 dcid; | 154 | __le16 dcid; |
155 | __le16 scid; | 155 | __le16 scid; |
156 | __le16 result; | 156 | __le16 result; |
157 | __le16 status; | 157 | __le16 status; |
158 | } __attribute__ ((packed)); | 158 | } __packed; |
159 | 159 | ||
160 | /* channel indentifier */ | 160 | /* channel indentifier */ |
161 | #define L2CAP_CID_SIGNALING 0x0001 | 161 | #define L2CAP_CID_SIGNALING 0x0001 |
@@ -179,14 +179,14 @@ struct l2cap_conf_req { | |||
179 | __le16 dcid; | 179 | __le16 dcid; |
180 | __le16 flags; | 180 | __le16 flags; |
181 | __u8 data[0]; | 181 | __u8 data[0]; |
182 | } __attribute__ ((packed)); | 182 | } __packed; |
183 | 183 | ||
184 | struct l2cap_conf_rsp { | 184 | struct l2cap_conf_rsp { |
185 | __le16 scid; | 185 | __le16 scid; |
186 | __le16 flags; | 186 | __le16 flags; |
187 | __le16 result; | 187 | __le16 result; |
188 | __u8 data[0]; | 188 | __u8 data[0]; |
189 | } __attribute__ ((packed)); | 189 | } __packed; |
190 | 190 | ||
191 | #define L2CAP_CONF_SUCCESS 0x0000 | 191 | #define L2CAP_CONF_SUCCESS 0x0000 |
192 | #define L2CAP_CONF_UNACCEPT 0x0001 | 192 | #define L2CAP_CONF_UNACCEPT 0x0001 |
@@ -197,7 +197,7 @@ struct l2cap_conf_opt { | |||
197 | __u8 type; | 197 | __u8 type; |
198 | __u8 len; | 198 | __u8 len; |
199 | __u8 val[0]; | 199 | __u8 val[0]; |
200 | } __attribute__ ((packed)); | 200 | } __packed; |
201 | #define L2CAP_CONF_OPT_SIZE 2 | 201 | #define L2CAP_CONF_OPT_SIZE 2 |
202 | 202 | ||
203 | #define L2CAP_CONF_HINT 0x80 | 203 | #define L2CAP_CONF_HINT 0x80 |
@@ -218,7 +218,7 @@ struct l2cap_conf_rfc { | |||
218 | __le16 retrans_timeout; | 218 | __le16 retrans_timeout; |
219 | __le16 monitor_timeout; | 219 | __le16 monitor_timeout; |
220 | __le16 max_pdu_size; | 220 | __le16 max_pdu_size; |
221 | } __attribute__ ((packed)); | 221 | } __packed; |
222 | 222 | ||
223 | #define L2CAP_MODE_BASIC 0x00 | 223 | #define L2CAP_MODE_BASIC 0x00 |
224 | #define L2CAP_MODE_RETRANS 0x01 | 224 | #define L2CAP_MODE_RETRANS 0x01 |
@@ -229,22 +229,22 @@ struct l2cap_conf_rfc { | |||
229 | struct l2cap_disconn_req { | 229 | struct l2cap_disconn_req { |
230 | __le16 dcid; | 230 | __le16 dcid; |
231 | __le16 scid; | 231 | __le16 scid; |
232 | } __attribute__ ((packed)); | 232 | } __packed; |
233 | 233 | ||
234 | struct l2cap_disconn_rsp { | 234 | struct l2cap_disconn_rsp { |
235 | __le16 dcid; | 235 | __le16 dcid; |
236 | __le16 scid; | 236 | __le16 scid; |
237 | } __attribute__ ((packed)); | 237 | } __packed; |
238 | 238 | ||
239 | struct l2cap_info_req { | 239 | struct l2cap_info_req { |
240 | __le16 type; | 240 | __le16 type; |
241 | } __attribute__ ((packed)); | 241 | } __packed; |
242 | 242 | ||
243 | struct l2cap_info_rsp { | 243 | struct l2cap_info_rsp { |
244 | __le16 type; | 244 | __le16 type; |
245 | __le16 result; | 245 | __le16 result; |
246 | __u8 data[0]; | 246 | __u8 data[0]; |
247 | } __attribute__ ((packed)); | 247 | } __packed; |
248 | 248 | ||
249 | /* info type */ | 249 | /* info type */ |
250 | #define L2CAP_IT_CL_MTU 0x0001 | 250 | #define L2CAP_IT_CL_MTU 0x0001 |