Handle allowed_networks properly
Fixes PRD-2096

Change-Id: Ida33921a471cc60cf69d19999ad4bee9696eb341
Merge "Handle allowed_networks properly Fixes PRD-2096"