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
This commit is contained in:
Matt Jacob
2009-08-13 01:17:26 +00:00
parent ab501dd65d
commit 5cc3786c64
+4
View File
@@ -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;
}