mac.c (d832f5e73815c3043ede569fd3af07c33764e49e) mac.c (fc6ee71a2a8f2d183724e3f97762e93c5102425c)
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2020 MediaTek Inc. */
3
4#include <linux/devcoredump.h>
5#include <linux/etherdevice.h>
6#include <linux/timekeeping.h>
7#include "mt7921.h"
8#include "../dma.h"

--- 956 unchanged lines hidden (view full) ---

965
966 spin_lock_bh(&dev->mt76.lock);
967 skb = __skb_dequeue(&dev->coredump.msg_list);
968 spin_unlock_bh(&dev->mt76.lock);
969
970 if (!skb)
971 break;
972
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2020 MediaTek Inc. */
3
4#include <linux/devcoredump.h>
5#include <linux/etherdevice.h>
6#include <linux/timekeeping.h>
7#include "mt7921.h"
8#include "../dma.h"

--- 956 unchanged lines hidden (view full) ---

965
966 spin_lock_bh(&dev->mt76.lock);
967 skb = __skb_dequeue(&dev->coredump.msg_list);
968 spin_unlock_bh(&dev->mt76.lock);
969
970 if (!skb)
971 break;
972
973 skb_pull(skb, sizeof(struct mt7921_mcu_rxd));
973 skb_pull(skb, sizeof(struct mt76_connac2_mcu_rxd));
974 if (!dump || data + skb->len - dump > MT76_CONNAC_COREDUMP_SZ) {
975 dev_kfree_skb(skb);
976 continue;
977 }
978
979 memcpy(data, skb->data, skb->len);
980 data += skb->len;
981

--- 126 unchanged lines hidden ---
974 if (!dump || data + skb->len - dump > MT76_CONNAC_COREDUMP_SZ) {
975 dev_kfree_skb(skb);
976 continue;
977 }
978
979 memcpy(data, skb->data, skb->len);
980 data += skb->len;
981

--- 126 unchanged lines hidden ---