OpenCloudOS-Kernel/drivers/net/wireless/ti/wlcore
Johannes Berg da6a4352e7 mac80211: separate encoding/bandwidth from flags
We currently use a lot of flags that are mutually incompatible,
separate this out into actual encoding and bandwidth enum values.

Much of this again done with spatch, with manual post-editing,
mostly to add the switch statements and get rid of the conversions.

@@
expression status;
@@
-status->enc_flags |= RX_ENC_FLAG_80MHZ
+status->bw = RATE_INFO_BW_80
@@
expression status;
@@
-status->enc_flags |= RX_ENC_FLAG_40MHZ
+status->bw = RATE_INFO_BW_40
@@
expression status;
@@
-status->enc_flags |= RX_ENC_FLAG_20MHZ
+status->bw = RATE_INFO_BW_20
@@
expression status;
@@
-status->enc_flags |= RX_ENC_FLAG_160MHZ
+status->bw = RATE_INFO_BW_160
@@
expression status;
@@
-status->enc_flags |= RX_ENC_FLAG_5MHZ
+status->bw = RATE_INFO_BW_5
@@
expression status;
@@
-status->enc_flags |= RX_ENC_FLAG_10MHZ
+status->bw = RATE_INFO_BW_10

@@
expression status;
@@
-status->enc_flags |= RX_ENC_FLAG_VHT
+status->encoding = RX_ENC_VHT
@@
expression status;
@@
-status->enc_flags |= RX_ENC_FLAG_HT
+status->encoding = RX_ENC_HT
@@
expression status;
@@
-status.enc_flags |= RX_ENC_FLAG_VHT
+status.encoding = RX_ENC_VHT
@@
expression status;
@@
-status.enc_flags |= RX_ENC_FLAG_HT
+status.encoding = RX_ENC_HT

@@
expression status;
@@
-(status->enc_flags & RX_ENC_FLAG_HT)
+(status->encoding == RX_ENC_HT)
@@
expression status;
@@
-(status->enc_flags & RX_ENC_FLAG_VHT)
+(status->encoding == RX_ENC_VHT)

@@
expression status;
@@
-(status->enc_flags & RX_ENC_FLAG_5MHZ)
+(status->bw == RATE_INFO_BW_5)
@@
expression status;
@@
-(status->enc_flags & RX_ENC_FLAG_10MHZ)
+(status->bw == RATE_INFO_BW_10)
@@
expression status;
@@
-(status->enc_flags & RX_ENC_FLAG_40MHZ)
+(status->bw == RATE_INFO_BW_40)
@@
expression status;
@@
-(status->enc_flags & RX_ENC_FLAG_80MHZ)
+(status->bw == RATE_INFO_BW_80)
@@
expression status;
@@
-(status->enc_flags & RX_ENC_FLAG_160MHZ)
+(status->bw == RATE_INFO_BW_160)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-04-28 10:41:45 +02:00
..
Kconfig wlcore/wl12xx: spi: add device tree support 2016-01-29 11:10:10 +02:00
Makefile Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
acx.c wlcore: Pass win_size taken from ieee80211_sta to FW 2016-11-17 08:38:04 +02:00
acx.h wlcore: Pass win_size taken from ieee80211_sta to FW 2016-11-17 08:38:04 +02:00
boot.c wlcore: Fix config firmware loading issues 2016-09-26 18:13:45 +03:00
boot.h
cmd.c wlcore/wl18xx: mesh: added initial mesh support for wl8 2016-07-18 22:33:26 +03:00
cmd.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
conf.h wlcore: split wl12xx/wl18xx sg parameters 2015-12-11 13:10:59 +02:00
debug.h drivers/net: Convert remaining uses of pr_warning to pr_warn 2014-09-09 20:37:08 -07:00
debugfs.c wlcore: fix spelling mistakes in wl1271_warning 2017-04-05 15:45:29 +03:00
debugfs.h wl18xx: show rx_frames_per_rates as an array as it really is 2015-03-16 18:07:03 +02:00
event.c mac80211: Pass new RSSI level in CQM RSSI notification 2017-02-08 10:43:04 +01:00
event.h wlcore/wl18xx: fw logger over sdio 2015-12-31 10:19:47 +02:00
hw_ops.h wlcore: add dfs master restart calls 2015-01-09 15:48:01 +02:00
ini.h
init.c scripts/spelling.txt: add "intialization" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
init.h wlcore: add p2p device support 2015-08-10 22:16:34 +03:00
io.c wlcore/wl12xx: Fix fw logger over sdio 2016-05-11 21:26:15 +03:00
io.h wlcore/wl12xx: Fix fw logger over sdio 2016-05-11 21:26:15 +03:00
main.c nl80211: allow multiple active scheduled scan requests 2017-04-26 23:17:38 +02:00
ps.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ps.h
rx.c mac80211: separate encoding/bandwidth from flags 2017-04-28 10:41:45 +02:00
rx.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
scan.c mac80211: Add support for beacon report radio measurement 2016-07-06 14:53:19 +02:00
scan.h wl18xx: use long intervals in sched scan 2015-08-10 22:16:21 +03:00
sdio.c wlcore: print the sdio buffer after reading it 2017-01-28 09:11:08 +02:00
spi.c wlcore: spi: Populate config firmware data 2016-09-26 18:13:44 +03:00
sysfs.c wlcore/wl18xx: fw logger over sdio 2015-12-31 10:19:47 +02:00
sysfs.h
testmode.c netlink: pass extended ACK struct to parsing functions 2017-04-13 13:58:22 -04:00
testmode.h mac80211: add vif to testmode cmd 2013-08-12 14:11:42 +02:00
tx.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
tx.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
vendor_cmd.c netlink: pass extended ACK struct to parsing functions 2017-04-13 13:58:22 -04:00
vendor_cmd.h wlcore/wl18xx: handle smart config events 2014-07-15 15:59:57 -04:00
wl12xx_80211.h
wlcore.h wl18xx: add time sync configuration api 2016-09-03 20:02:34 +03:00
wlcore_i.h wlcore: Fix config firmware loading issues 2016-09-26 18:13:45 +03:00