This is possible with ProfileMatic. You can use WiFi condition, then in Custom Action the gconf command to disable/enable WiFi scanning. Bluetooth conditions will come later, maybe next version.