linux/drivers/net
Bitterblue Smith c8bc376027 wifi: rtl8xxxu: Simplify setting the initial gain
The goal of writing 0x6954341e / 0x6955341e to REG_OFDM0_XA_AGC_CORE1
appears to be setting the initial gain, which is stored in bits 0..6.
Bits 7..31 are the same as what the phy init tables write.

Modify only bits 0..6 so that we don't have to care about the values
of the others. This way we don't have to add another "else if" for the
RTL8192FU.

Why we need to change the initial gain from the default 0x20 to 0x1e?
Not sure. Some of the vendor drivers change it to 0x1e before scanning
and then restore it to the original value after.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/cf91ca69-70e3-4c20-c0b1-e59d452356a1@gmail.com
2023-04-20 15:35:38 +03:00
..
appletalk
arcnet
bonding
caif
can kvaser_usb: convert USB IDs to hexadecimal values 2023-04-04 16:48:45 +02:00
dsa net: dsa: mt7530: introduce driver for MT7988 built-in switch 2023-04-03 10:13:01 +01:00
ethernet net: stmmac: dwmac-imx: use platform specific reset for imx93 SoCs 2023-04-05 19:01:22 -07:00
fddi
fjes
hamradio
hippi
hyperv
ieee802154 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-30 14:43:03 -07:00
ipa Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-30 14:43:03 -07:00
ipvlan
mctp
mdio Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-24 10:10:20 -07:00
netdevsim
pcs net: pcs: xpcs: use Autoneg bit rather than an_enabled 2023-03-22 22:43:05 -07:00
phy net: phy: meson-gxl: enable edpd tunable support for G12A internal PHY 2023-04-04 18:56:01 -07:00
plip
ppp
pse-pd
slip
team
thunderbolt
usb net: asix: fix modprobe "sysfs: cannot create duplicate filename" 2023-03-22 22:04:04 -07:00
vmxnet3 vmxnet3: use gro callback when UPT is enabled 2023-03-24 19:13:49 -07:00
vxlan
wan
wireguard
wireless wifi: rtl8xxxu: Simplify setting the initial gain 2023-04-20 15:35:38 +03:00
wwan Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-30 14:43:03 -07:00
xen-netback xen/netback: use same error messages for same errors 2023-03-30 15:39:23 +02:00
amt.c
bareudp.c
dummy.c
eql.c
geneve.c net: geneve: accept every ethertype 2023-03-21 13:39:29 +01:00
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c macvlan: Fix mc_filter calculation 2023-03-31 08:56:42 +01:00
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c net/net_failover: fix txq exceeding warning 2023-03-27 08:08:57 +01:00
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
tun.c
veth.c bpf-for-netdev 2023-03-23 16:03:33 -07:00
virtio_net.c
vrf.c
vsockmon.c
xen-netfront.c