p2p: check the length of the network name bytes Fixes: 144472136 Bug: 144472136 Test: atest FrameworksWifiApiTests Change-Id: I80b8e0330499e6c655efb1712811891a8e8229cb