Connecting to wifi using rpi0 vintage_net_wifi

I am trying to connect I am trying to connect my rpi0 using

I am using vintage_net_example. I connected to console via ssh and I am configuring the wifi at runtime like

VintageNet.configure("wlan0", %{
      type: VintageNetWiFi,
      vintage_net_wifi: %{
        regulatory_domain: "IN",
        networks: [
            ssid: "myssid",
            key_mgmt: :wpa_psk,
            psk: "password"
      ipv4: %{method: :dhcp}

I cannot connect to wifi and get the log like this

brcmfmac: brcmf_run_escan: error(-512)
brcmfmac: brcmf_cfg80211_scan: scan error(-512)
brcmfmac: brcmf_cfg80211_escan_handler: scan not ready, bsscfgidx=0
brcmfmac: brcmf_fweh_event_worker: event handler failed (69)

Can anyone please help.