Skip to content

Commit 61ec141

Browse files
Fix coding style
1 parent fdc654f commit 61ec141

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

vwifi.c

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,27 +2332,26 @@ static struct cfg80211_ops vwifi_cfg_ops = {
23322332
};
23332333

23342334
/* Macro for defining 2GHZ channel array */
2335-
#define CHAN_2GHZ(channel, freq) \
2336-
{ \
2337-
.band = NL80211_BAND_2GHZ, \
2338-
.hw_value = (channel), \
2339-
.center_freq = (freq), \
2335+
#define CHAN_2GHZ(channel, freq) \
2336+
{ \
2337+
.band = NL80211_BAND_2GHZ, .hw_value = (channel), \
2338+
.center_freq = (freq), \
23402339
}
23412340

23422341
/* Macro for defining 5GHZ channel array */
2343-
#define CHAN_5GHZ(channel) \
2344-
{ \
2345-
.band = NL80211_BAND_5GHZ, \
2346-
.hw_value = (channel), \
2347-
.center_freq = 5000 + (5 * (channel)), \
2342+
#define CHAN_5GHZ(channel) \
2343+
{ \
2344+
.band = NL80211_BAND_5GHZ, .hw_value = (channel), \
2345+
.center_freq = 5000 + (5 * (channel)), \
23482346
}
23492347

23502348

23512349
/* Macro for defining rate table */
2352-
#define RATE_ENT(_rate, _hw_value) \
2353-
{ \
2354-
.bitrate = (_rate), \
2355-
.hw_value = (_hw_value), \
2350+
for file in ${SOURCES}
2351+
/usr/bin/clang-format-18 /home/runner/work/vwifi/vwifi/vwifi-tool.c
2352+
#define RATE_ENT(_rate, _hw_value) \
2353+
{ \
2354+
.bitrate = (_rate), .hw_value = (_hw_value), \
23562355
}
23572356

23582357
/* Array of "supported" channels in 2GHz band. It is required for wiphy. */

0 commit comments

Comments
 (0)