Fix incorrect network type determination.

Change-Id: Ib8e2bfcaf519574fa3422c7707a80d3703283fb4