FreeBSD Bugzilla – Attachment 150947 Details for
Bug 196261
[net80211] [patch]: simplify checks in makescanlist()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Remove / sort mode checks
patch-makescanlist.diff (text/plain), 1.54 KB, created by
Andriy Voskoboinyk
on 2014-12-25 01:41:34 UTC
(
hide
)
Description:
Remove / sort mode checks
Filename:
MIME Type:
Creator:
Andriy Voskoboinyk
Created:
2014-12-25 01:41:34 UTC
Size:
1.54 KB
patch
obsolete
>Index: sys/net80211/ieee80211_scan_sta.c >=================================================================== >--- sys/net80211/ieee80211_scan_sta.c (revision 276192) >+++ sys/net80211/ieee80211_scan_sta.c (working copy) >@@ -589,30 +589,26 @@ > */ > for (scan = table; scan->list != NULL; scan++) { > mode = scan->mode; >- if (vap->iv_des_mode != IEEE80211_MODE_AUTO) { >+ >+ /* Skip the G check */ >+ if (vap->iv_des_mode == IEEE80211_MODE_11G && >+ mode == IEEE80211_MODE_11G) >+ continue; >+ >+ if (mode == IEEE80211_MODE_11B) { > /* >- * If a desired mode was specified, scan only >- * channels that satisfy that constraint. >+ * The scan table marks 2.4Ghz channels as b >+ * so if the desired mode is 11g, then use >+ * the 11b channel list but upgrade the mode. > */ >- if (vap->iv_des_mode != mode) { >- /* >- * The scan table marks 2.4Ghz channels as b >- * so if the desired mode is 11g, then use >- * the 11b channel list but upgrade the mode. >- */ >- if (vap->iv_des_mode == IEEE80211_MODE_11G) { >- if (mode == IEEE80211_MODE_11G) /* Skip the G check */ >- continue; >- else if (mode == IEEE80211_MODE_11B) >- mode = IEEE80211_MODE_11G; /* upgrade */ >- } >- } >- } else { >+ if (vap->iv_des_mode == IEEE80211_MODE_11G) >+ mode = IEEE80211_MODE_11G; /* upgrade */ >+ > /* > * This lets add_channels upgrade an 11b channel > * to 11g if available. > */ >- if (mode == IEEE80211_MODE_11B) >+ else if (vap->iv_des_mode == IEEE80211_MODE_AUTO) > mode = IEEE80211_MODE_AUTO; > } > #ifdef IEEE80211_F_XR
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 196261
: 150947