forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/mediatek/mt7601u/mac.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org>
34 * Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2
7
- * as published by the Free Software Foundation
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146
157 #include "mt7601u.h"
....@@ -53,7 +45,7 @@
5345 return;
5446 case MT_PHY_TYPE_HT_GF:
5547 txrate->flags |= IEEE80211_TX_RC_GREEN_FIELD;
56
- /* fall through */
48
+ fallthrough;
5749 case MT_PHY_TYPE_HT:
5850 txrate->flags |= IEEE80211_TX_RC_MCS;
5951 txrate->idx = idx;
....@@ -427,7 +419,7 @@
427419 return;
428420 case MT_PHY_TYPE_HT_GF:
429421 status->enc_flags |= RX_ENC_FLAG_HT_GF;
430
- /* fall through */
422
+ fallthrough;
431423 case MT_PHY_TYPE_HT:
432424 status->encoding = RX_ENC_HT;
433425 status->rate_idx = idx;