diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index 7fd9200fe..6978695d9 100644 --- a/src/lib.rs +++ b/src/lib.rs | |||
| @@ -138,6 +138,7 @@ const IRQ_F3_INTR: u16 = 0x8000; | |||
| 138 | 138 | ||
| 139 | const IOCTL_CMD_UP: u32 = 2; | 139 | const IOCTL_CMD_UP: u32 = 2; |
| 140 | const IOCTL_CMD_SET_SSID: u32 = 26; | 140 | const IOCTL_CMD_SET_SSID: u32 = 26; |
| 141 | const IOCTL_CMD_ANTDIV: u32 = 64; | ||
| 141 | const IOCTL_CMD_SET_VAR: u32 = 263; | 142 | const IOCTL_CMD_SET_VAR: u32 = 263; |
| 142 | const IOCTL_CMD_GET_VAR: u32 = 262; | 143 | const IOCTL_CMD_GET_VAR: u32 = 262; |
| 143 | const IOCTL_CMD_SET_PASSPHRASE: u32 = 268; | 144 | const IOCTL_CMD_SET_PASSPHRASE: u32 = 268; |
| @@ -317,7 +318,8 @@ impl<'a> Control<'a> { | |||
| 317 | // set country takes some time, next ioctls fail if we don't wait. | 318 | // set country takes some time, next ioctls fail if we don't wait. |
| 318 | Timer::after(Duration::from_millis(100)).await; | 319 | Timer::after(Duration::from_millis(100)).await; |
| 319 | 320 | ||
| 320 | self.ioctl_set_u32(64, 0, 0).await; // WLC_SET_ANTDIV | 321 | // Set antenna to chip antenna |
| 322 | self.ioctl_set_u32(IOCTL_CMD_ANTDIV, 0, 0).await; | ||
| 321 | 323 | ||
| 322 | self.set_iovar_u32("bus:txglom", 0).await; | 324 | self.set_iovar_u32("bus:txglom", 0).await; |
| 323 | Timer::after(Duration::from_millis(100)).await; | 325 | Timer::after(Duration::from_millis(100)).await; |
