diff options
Diffstat (limited to 'drivers/net/wireless/p54/p54common.h')
-rw-r--r-- | drivers/net/wireless/p54/p54common.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/drivers/net/wireless/p54/p54common.h b/drivers/net/wireless/p54/p54common.h index 3419f16be938..5a68fdae7730 100644 --- a/drivers/net/wireless/p54/p54common.h +++ b/drivers/net/wireless/p54/p54common.h | |||
@@ -246,9 +246,21 @@ struct memrecord { | |||
246 | }; | 246 | }; |
247 | 247 | ||
248 | struct p54_eeprom_lm86 { | 248 | struct p54_eeprom_lm86 { |
249 | __le16 offset; | 249 | union { |
250 | __le16 len; | 250 | struct { |
251 | u8 data[0]; | 251 | __le16 offset; |
252 | __le16 len; | ||
253 | u8 data[0]; | ||
254 | } v1; | ||
255 | struct { | ||
256 | __le32 offset; | ||
257 | __le16 len; | ||
258 | u8 magic2; | ||
259 | u8 pad; | ||
260 | u8 magic[4]; | ||
261 | u8 data[0]; | ||
262 | } v2; | ||
263 | } __attribute__ ((packed)); | ||
252 | } __attribute__ ((packed)); | 264 | } __attribute__ ((packed)); |
253 | 265 | ||
254 | enum p54_rx_decrypt_status { | 266 | enum p54_rx_decrypt_status { |
@@ -302,7 +314,7 @@ enum p54_frame_sent_status { | |||
302 | P54_TX_OK = 0, | 314 | P54_TX_OK = 0, |
303 | P54_TX_FAILED, | 315 | P54_TX_FAILED, |
304 | P54_TX_PSM, | 316 | P54_TX_PSM, |
305 | P54_TX_PSM_CANCELLED | 317 | P54_TX_PSM_CANCELLED = 4 |
306 | }; | 318 | }; |
307 | 319 | ||
308 | struct p54_frame_sent { | 320 | struct p54_frame_sent { |