Wifi is working now...
I used following commands on my BananaPro board with legacy kernel and Ubuntu Trusty:
( Download link of used system image http://mirror.igorpecovnik.com/Armbian_4.5_Bananapi_Ubuntu_trusty_3.4.109_desktop.zip.
Note: If this link should be different for BananaPi and for BananaPro it is not my fault :-) )
# based on previous posts I decided return back old kernel version 3.4.109 for bananapi because wifi driver is not working on latest kernel supplied with system image
apt-get purge linux-firmware-image-sun7i -y
rm /etc/modules -Rv # apt-get cannot remove this folder during uninstall procedure # removed 20.1.
rm /lib/firmware -Rv # apt-get cannot remove this folder during uninstall procedure # added 20.1.
aptitude install linux-image-banana linux-headers-banana linux-firmware-image-banana linux-u-boot-bananapi -y
rm -v /boot/script.bin
ln -vs /boot/bin/bananapipro.bin /boot/script.bin
echo ap6210 >> /etc/modules && cat /etc/modules
# generate encrypted wifi password and copy output to clipboard
wpa_passphrase yourSSID yourpassword
# edit /etc/network/interfaces
# remove "#" symbol like you can see in example below
# replace "yourSSID" and "yourpassword" with your wifi SSID and ecrypted password
nano /etc/network/interfaces
EXAMPLE:
# Wired adapter #1
auto eth0
iface eth0 inet dhcp
# hwaddress ether # if you want to set MAC manually
# pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
#
# Wired adapter #2
#auto eth1
# iface eth1 inet dhcp
# hwaddress ether # if you want to set MAC manually
# pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
#
# Wireless adapter #1
auto wlan0
allow-hotplug wlan0
wpa-ssid yourSSID
wpa-psk yourpassword
# to generate proper encrypted key: wpa_passphrase yourSSID yourpassword
#
# Local loopback
auto lo
iface lo inet loopback
AND REBOOT and it should work like in my case ;-)