mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
wi: fix a comment (0x1fff has 13 bits set).
This commit is contained in:
parent
cdbf6d8a05
commit
4772b8701c
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ wi_attach(device_t dev)
|
|||
*/
|
||||
buflen = sizeof(val);
|
||||
if (wi_read_rid(sc, WI_RID_CHANNEL_LIST, &val, &buflen) != 0)
|
||||
val = htole16(0x1fff); /* assume 1-11 */
|
||||
val = htole16(0x1fff); /* assume 1-13 */
|
||||
KASSERT(val != 0, ("wi_attach: no available channels listed!"));
|
||||
|
||||
val <<= 1; /* shift for base 1 indices */
|
||||
|
|
|
|||
Loading…
Reference in a new issue