Wlan0: unsupported driver 'nl80211'

Hello,

I am trying to connect WiFi to my Avenger96 board.

Command I am using:

“# wpa_supplicant -B -Dnl80211 -iwlan0 -cwpa_supplicant.conf”

But this results in an error:

“wlan0: unsupported driver ‘nl80211’”.

Can someone please let me know how to resolve this issue? Should I include wifi drivers in my image?

P.S: I am using Yocto as Build system with custom image