FreeBSD Bugzilla – Attachment 153892 Details for
Bug 196264
[iwn] [patch]: few minor fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Few minor fixes
iwn-patch.diff (text/plain), 1.15 KB, created by
Andriy Voskoboinyk
on 2015-03-06 11:35:26 UTC
(
hide
)
Description:
Few minor fixes
Filename:
MIME Type:
Creator:
Andriy Voskoboinyk
Created:
2015-03-06 11:35:26 UTC
Size:
1.15 KB
patch
obsolete
>Index: sys/dev/iwn/if_iwn.c >=================================================================== >--- sys/dev/iwn/if_iwn.c (revision 278764) >+++ sys/dev/iwn/if_iwn.c (working copy) >@@ -4047,8 +4047,10 @@ > r2 = 0; /* Unused. */ > } else { > r1 = IWN_READ(sc, IWN_INT); >- if (r1 == 0xffffffff || (r1 & 0xfffffff0) == 0xa5a5a5a0) >+ if (r1 == 0xffffffff || (r1 & 0xfffffff0) == 0xa5a5a5a0) { >+ IWN_UNLOCK(sc); > return; /* Hardware gone! */ >+ } > r2 = IWN_READ(sc, IWN_FH_INT); > } > >@@ -4950,7 +4952,6 @@ > IWN_LOCK(sc); > memset(&sc->last_stat, 0, sizeof(struct iwn_stats)); > IWN_UNLOCK(sc); >- error = 0; > break; > default: > error = EINVAL; >@@ -6818,16 +6819,10 @@ > chan->active = htole16(dwell_active); > chan->passive = htole16(dwell_passive); > >- if (IEEE80211_IS_CHAN_5GHZ(c) && >- !(c->ic_flags & IEEE80211_CHAN_PASSIVE)) { >+ if (IEEE80211_IS_CHAN_5GHZ(c)) > chan->rf_gain = 0x3b; >- } else if (IEEE80211_IS_CHAN_5GHZ(c)) { >- chan->rf_gain = 0x3b; >- } else if (!(c->ic_flags & IEEE80211_CHAN_PASSIVE)) { >+ else > chan->rf_gain = 0x28; >- } else { >- chan->rf_gain = 0x28; >- } > > DPRINTF(sc, IWN_DEBUG_STATE, > "%s: chan %u flags 0x%x rf_gain 0x%x "
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 196264
:
150952
|
153892
|
153995
|
153996
|
156730