wlan: Retrieve sta id for only PTK key

Currently at add key mac address is NULL for GTK key. So while
retrieving sta id system crashes as address is NULL. In this
change check if pairwise key and then only retrieve sta id from
mac.

Change-Id: I2f2f6e0e10cdc6eabd78ff2dc5108969403d9a27
CRs-Fixed: 2141572
1 file changed
tree: c8fee47e9bb31f67f144a4d0d5921e4913ef7b02
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile