もちろん、ほとんどの Android デバイスは Wi-Fi をサポートしていますが、すべてではありません。
wifiが現在のデバイスでサポートされているかどうかを確認するにはどうすればよいですか? 
たとえば、Bluetooth の場合は (Scala で) 次のようにできます。
def isBluetoothSupported: Boolean = {
  BluetoothAdapter.getDefaultAdapter match {
    case null => false;
    case x: BluetoothAdapter => true;
  }
}
wifiに対応するコードは何ですか?