Fix mac_prim NPE when NAN is disabled

If NAN is disabled in the kernel, then the NAN mac control will be NULL
which can lead to a NPE during nan_disable_request(). Make sure to check
mac_prim for NULL before dereferencing it.

Bug: 226984257
Change-Id: I535fbae186eee2f62a01376b439629bd51b76460
1 file changed
tree: 8761b35261e1a253571a74deea44d7a71157c268
  1. bcmdhd/
  2. .gitignore
  3. CleanSpec.mk
  4. METADATA
  5. OWNERS