summaryrefslogtreecommitdiffstats
path: root/sys/dev/iwn
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2009-07-10 15:28:33 +0000
committerrpaulo <rpaulo@FreeBSD.org>2009-07-10 15:28:33 +0000
commitade7784f4d82c8deaead607f93502350979b0052 (patch)
tree70be8e5e46972642080f053290fd6f9766d7bac5 /sys/dev/iwn
parent3625089dba2270344045a4160c2da2544c90aab4 (diff)
downloadFreeBSD-src-ade7784f4d82c8deaead607f93502350979b0052.zip
FreeBSD-src-ade7784f4d82c8deaead607f93502350979b0052.tar.gz
For ic_opmode switch cases, provide a default label with a printf saying
this opmode is not supported. Approved by: re (kib)
Diffstat (limited to 'sys/dev/iwn')
-rw-r--r--sys/dev/iwn/if_iwn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c
index b520d8d..51dea22 100644
--- a/sys/dev/iwn/if_iwn.c
+++ b/sys/dev/iwn/if_iwn.c
@@ -3916,7 +3916,8 @@ iwn_config(struct iwn_softc *sc)
IWN_FILTER_CTL | IWN_FILTER_PROMISC);
break;
default:
- break;
+ device_printf(sc->sc_dev, "unknown opmode %d\n", ic->ic_opmode);
+ return EINVAL;
}
sc->config.cck_mask = 0x0f; /* not yet negotiated */
sc->config.ofdm_mask = 0xff; /* not yet negotiated */
OpenPOWER on IntegriCloud