1 DESCRIPTION = "one-time install package to upgrade the firmware of all installed prism2 based cards."
2 RDEPENDS = "hostap-modules-pci hostap-utils"
7 SRC_URI = "http://www.red-bean.com/~proski/firmware/${PV}.tar.bz2"
9 INHIBIT_PACKAGE_STRIP = "1"
13 install ${WORKDIR}/${PV}/pk010101.hex ${D}tmp
14 install ${WORKDIR}/${PV}/sf010704.hex ${D}tmp
18 if test "x$D" != "x"; then
25 echo "firmware upgrade on $IF"
26 if [ ! `iwconfig $IF | grep "No such device"` ]; then
27 echo -n " - current firmware version: ";
28 echo `hostap_diag $IF | grep STAID | awk '{print $3}'`;
29 if [[ `hostap_diag $IF | grep STAID | awk '{print $3}'` < $FW_VERSION ]]; then
30 echo " - upgrading to version $FW_VERSION"
31 prism2_srec -f $IF /tmp/sf010704.hex /tmp/pk010101.hex
33 echo " - upgrade not necessary"
39 for i in `ls /proc/net/hostap`; do