Wifi not working with dchp client / wpa supplicant on beaglebone black with built in wifi adapter

Hello all,
I have tried to connect the beaglebone (via usb ssh from my computer) to the wifi network using several methods:
First, I have tried to edit the /etc/network/interfaces file and put the following text:

  1. auto wlan0
  2. iface wlan0 inet dhcp
  3. wpa-ssid “ssid”
  4. wpa-psk “password”
    but then after running ifup wlan0 it says no DHCPOFFERS recieved.

I have tried using wpa_supplicant as well but it does not connect to the router it just says initialised and then then doesn’t do anything thereafter.

Anyone have any idea why? Or have any suggestions with another method? I also used connmanctl but it gives a operation aborted error
Thanks in Advance

On Fri, 16 Aug 2019 06:09:46 -0700 (PDT),
kaizadwadia0@gmail.com declaimed the
following:

but then after running ifup wlan0 it says no DHCPOFFERS recieved.

  What does the router have to say about it? Does the router have any
sort of log showing connection requests? Is it configured to allow any
client, or does it have a white/black-list that may restrict to specific
MAC addresses? Does the router have free IP numbers to issue (some may be
configured to restrict the number of clients, and if you are at the limit
it may ignore new clients).