Osmc wifi adapter not working

Can anyone help me figure out how to get my wifi usb dongle to work with my osmc on raspberry Pi b+

Which make and model ?

D-link dwa-171

Tried openelec and everything worked flawlessly.

OSMC uses a newer version of the linux kernel, but apparently a lot of the wifi drivers are very flaky.
See this thread: [RC] - Added WIFI adapter support requests - Official topic