wlan: Fix inline building

This fixes inline bulding for devices like ruby
* ifndef'ed mutiple defines
* Fix compiler warning

Change-Id: I3282a93c7a637951792e4270eaabeced7fbd9a7b