This works for me
#!/bin/sh
sudo rmmod wl 2>/dev/null
tce-load -i firmware-broadcom_bcm43xx iw wifi wl-modules-KERNEL
sudo modprobe wl
echo ""
IFNUM=0
for i in /sys/class/net/eth* ; do
if [ -d $i/wireless ]; then
[ -e /sys/class/net/wlan${IFNUM} ] && IFNUM=$((IFNUM+1))
echo "Renaming $i to wlan${IFNUM}"
sudo nameif wlan${IFNUM} `cat $i/address`
IFNUM=$((IFNUM+1))
fi
done
echo -en "\n:: Done.\n:: Press the ANY key..."
read -n1 junk
sudo wifi.sh