[mle] check netif is up before processing discover scan (#6919)

This commit updates `Mle::DiscoverScanner` to check that IPv6
interface is enabled from `Discover()` (returns `kErrorInvalidState`
if netif is not up).
This commit is contained in:
Abtin Keshavarzian
2021-08-12 21:57:11 -07:00
committed by GitHub
parent e8e40229fd
commit b42261f88c
5 changed files with 13 additions and 6 deletions
@@ -78,6 +78,8 @@ expect -re "\\| +$channel \\| +-?\\d+ \\|"
expect_line "Done"
switch_node 3
send "discover\n"
expect "Error 13: InvalidState"
send "ifconfig up\n"
expect_line "Done"
send "discover $channel\n"