As far as I know Wi-Fi is reliant upon hardware as well as software so the phone must have the hardware capable of supporting the Wi-Fi. For phones, including BB's, that do not natively support Wi-Fi you can sometimes find aftermarket hardware to connect to the device and provide the connectivity.