Recovering Buffalo WZR-HP-AG300H from bad firmware upgrade

Recently I managed to flash bad custom build of OpenWrt to my Buffalo WZR-HP-AG300H rendering it unbootable. See below for tips how to flash latest OpenWrt over TFTP from Windows XP client.

1. Download TFTP version of OpenWrt from

2. Disconnect WAN cable from Buffalo

3. Connect PC to LAN port closest to WAN

4. Set PC IP to, netmask No GW, no DNS. 
   Make sure any other network interfaces such as WLAN are disabled.

5. Create batch file named FOO.CMD with following content

ARP -S 02-AA-BB-CC-DD-20

6. Launch FOO.CMD

7. Type "TFTP -i put openwrt-ar71xx-generic-wzr-hp-ag300h-squashfs-tftp.bin"
   in command prompt but DON'T press enter just yet.

8. Connect power cable to AP

9. As soon as network link goes up hit enter on TFTP command window. 
   It should return nearly instantly and red DIAG led starts to flash on AP.

10. Set PC network settings back to DHCP and telnet to AP. It should be now up with IP.