Validate publish and subscribe configurations and message length using the NAN configuration retrieved from the firmware. (cherry-pick of commit 65eaa6d82170140b351d48342550a27c971d2a37) Bug: 31912101 Test: unit tests Change-Id: I0328cabf1aafb3f350c5fe38e6d03b0e002c693b