summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_freebsd.c
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2009-08-13 01:17:26 +0000
committermjacob <mjacob@FreeBSD.org>2009-08-13 01:17:26 +0000
commit6750a66f54f353b508d4ac89953e31c70126c1ef (patch)
tree0ad0a097e5bff780f8f6a0c4b9e828a8c921d25c /sys/dev/isp/isp_freebsd.c
parent3fb9b6ababe4a47f0dd1a506016213fd139feb1c (diff)
downloadFreeBSD-src-6750a66f54f353b508d4ac89953e31c70126c1ef.zip
FreeBSD-src-6750a66f54f353b508d4ac89953e31c70126c1ef.tar.gz
Have at least *some* default WWN to fall back on,
otherwise Sun branded FC cards won't configure. Reviewed by: Ken, Scott Approved by: re
Diffstat (limited to 'sys/dev/isp/isp_freebsd.c')
-rw-r--r--sys/dev/isp/isp_freebsd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index b6f172b..3d20b09 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -5280,6 +5280,10 @@ isp_default_wwn(ispsoftc_t * isp, int chan, int isactive, int iswwnn)
return (seed);
}
seed = iswwnn ? FCPARAM(isp, chan)->isp_wwnn_nvram : FCPARAM(isp, chan)->isp_wwpn_nvram;
+ if (seed) {
+ return (seed);
+ }
+ return (0x400000007F000009ull);
} else {
seed = iswwnn ? fc->def_wwnn : fc->def_wwpn;
}
OpenPOWER on IntegriCloud