title: getBSSID() in android studio
body: <p>I am trying to get BSSID of WiFi but i am always getting 02:00:00:00:00:00 . How to get the Wifi MAC address ?</p>
  <p>In android Manifest -</p>
  <pre><code> &lt;uses-permission android:name=&quot;android.permission.ACCESS_WIFI_STATE&quot;/&gt;
   &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot;/&gt;
  </code></pre>
  <p>Code</p>
  <pre><code>WifiManager wifiMgr = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE);
  WifiInfo wifiInfo = wifiMgr.getConnectionInfo();
  Toast.makeText(UserDashboardActivity.this,&quot;macAddress &quot; + wifiInfo.getBSSID(),Toast.LENGTH_LONG).show();
  </code></pre>