diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 0f8b84b7224c..d0d8060040ba 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -437,6 +437,7 @@ static void rt2800usb_write_beacon(struct queue_entry *entry, | |||
437 | struct txentry_desc *txdesc) | 437 | struct txentry_desc *txdesc) |
438 | { | 438 | { |
439 | struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; | 439 | struct rt2x00_dev *rt2x00dev = entry->queue->rt2x00dev; |
440 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); | ||
440 | unsigned int beacon_base; | 441 | unsigned int beacon_base; |
441 | u32 reg; | 442 | u32 reg; |
442 | 443 | ||
@@ -449,9 +450,24 @@ static void rt2800usb_write_beacon(struct queue_entry *entry, | |||
449 | rt2800_register_write(rt2x00dev, BCN_TIME_CFG, reg); | 450 | rt2800_register_write(rt2x00dev, BCN_TIME_CFG, reg); |
450 | 451 | ||
451 | /* | 452 | /* |
453 | * Register descriptor details in skb frame descriptor. | ||
454 | */ | ||
455 | skbdesc->desc = entry->skb->data - TXWI_DESC_SIZE; | ||
456 | skbdesc->desc_len = TXWI_DESC_SIZE; | ||
457 | |||
458 | /* | ||
452 | * Add the TXWI for the beacon to the skb. | 459 | * Add the TXWI for the beacon to the skb. |
453 | */ | 460 | */ |
454 | rt2800_write_txwi(entry->skb, txdesc); | 461 | rt2800_write_txwi(entry->skb, txdesc); |
462 | |||
463 | /* | ||
464 | * Dump beacon to userspace through debugfs. | ||
465 | */ | ||
466 | rt2x00debug_dump_frame(rt2x00dev, DUMP_FRAME_BEACON, entry->skb); | ||
467 | |||
468 | /* | ||
469 | * Adjust skb to take TXWI into account. | ||
470 | */ | ||
455 | skb_push(entry->skb, TXWI_DESC_SIZE); | 471 | skb_push(entry->skb, TXWI_DESC_SIZE); |
456 | 472 | ||
457 | /* | 473 | /* |