mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
rtl8xxxu: rtl8xxxu_set_linktype(): Be consistent aboutregister size REG_MSR
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
c85ea1156d
commit
a26703f39d
1 changed files with 2 additions and 2 deletions
|
|
@ -1599,9 +1599,9 @@ rtl8723a_set_tx_power(struct rtl8xxxu_priv *priv, int channel, bool ht40)
|
|||
static void rtl8xxxu_set_linktype(struct rtl8xxxu_priv *priv,
|
||||
enum nl80211_iftype linktype)
|
||||
{
|
||||
u16 val8;
|
||||
u8 val8;
|
||||
|
||||
val8 = rtl8xxxu_read16(priv, REG_MSR);
|
||||
val8 = rtl8xxxu_read8(priv, REG_MSR);
|
||||
val8 &= ~MSR_LINKTYPE_MASK;
|
||||
|
||||
switch (linktype) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue