Android Wear 5.1.1 Release 0.10
Sparrow: Wifi: Add null pointer check when wifi driver try to set country code

Issue description:
This issue happend when wifi try to set country code that get from 11d AP.
It meets null pointer exception when driver try to set country code to firmware.

TT number and Gatting or not:
no TT number and not Gatting.

User impact if not fix:
System will auto reboot.

Reproduce step:
Turn on wifi and connect to an 11d AP.

Reproduce rate:
Very low.

Root cause:
Null pointer exception.

Solution:
Add a null point check in wifi driver.

Verification:
Overnight stress test.

Bug: 22949769

Change-Id: I572496e98227bfafff18bb4bfc5603ca9d02d71b
Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/188834
Reviewed-by: Jeffrey Wang <jeffrey_wang@asus.com>
Tested-by: Jeffrey Wang <jeffrey_wang@asus.com>
Reviewed-by: joe_tsai <joe_tsai@asus.com>
Tested-by: joe_tsai <joe_tsai@asus.com>
1 file changed