diff options
Diffstat (limited to 'drivers/net/wimax/i2400m/rx.c')
-rw-r--r-- | drivers/net/wimax/i2400m/rx.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/wimax/i2400m/rx.c b/drivers/net/wimax/i2400m/rx.c index 07c32e68909f..bcd411f1a854 100644 --- a/drivers/net/wimax/i2400m/rx.c +++ b/drivers/net/wimax/i2400m/rx.c | |||
@@ -1194,6 +1194,28 @@ error_msg_hdr_check: | |||
1194 | EXPORT_SYMBOL_GPL(i2400m_rx); | 1194 | EXPORT_SYMBOL_GPL(i2400m_rx); |
1195 | 1195 | ||
1196 | 1196 | ||
1197 | void i2400m_unknown_barker(struct i2400m *i2400m, | ||
1198 | const void *buf, size_t size) | ||
1199 | { | ||
1200 | struct device *dev = i2400m_dev(i2400m); | ||
1201 | char prefix[64]; | ||
1202 | const __le32 *barker = buf; | ||
1203 | dev_err(dev, "RX: HW BUG? unknown barker %08x, " | ||
1204 | "dropping %zu bytes\n", le32_to_cpu(*barker), size); | ||
1205 | snprintf(prefix, sizeof(prefix), "%s %s: ", | ||
1206 | dev_driver_string(dev), dev_name(dev)); | ||
1207 | if (size > 64) { | ||
1208 | print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, | ||
1209 | 8, 4, buf, 64, 0); | ||
1210 | printk(KERN_ERR "%s... (only first 64 bytes " | ||
1211 | "dumped)\n", prefix); | ||
1212 | } else | ||
1213 | print_hex_dump(KERN_ERR, prefix, DUMP_PREFIX_OFFSET, | ||
1214 | 8, 4, buf, size, 0); | ||
1215 | } | ||
1216 | EXPORT_SYMBOL(i2400m_unknown_barker); | ||
1217 | |||
1218 | |||
1197 | /* | 1219 | /* |
1198 | * Initialize the RX queue and infrastructure | 1220 | * Initialize the RX queue and infrastructure |
1199 | * | 1221 | * |