Ok, lets do this,
Go here:
http://support.dlink.ca/ProductInfo.aspx?m=DIR-815 Select the drop down menu and select Rev B.
Download the zip file to your desktop. Unpack the .zip file to a folder where you see the .bin file.
Use IE or FF and do a factory reset under Tools/System with
1 WIRED LAN PC. Let the router come to ready. Log back into the routers web page using the
1 WIRED LAN PC and go to Tools/Firmware. Select the browse button and navigate to where you unpacked the .bin file. Select the .bin file listed in the folder. Select OK proceed to send the FW file. Let the router process the FW update. After it comes back to ready, do one more factory reset under Tools/System again. Let the router come to ready. You can either use the setup wizard to set it up again or manually go in and set it up. I prefer to use the wizard and complete that process. Then go in manually and set up the router.
Turn off the 5Ghz radio if your not using it. On 2.4Ghz, Set Mixed G and N modes, Give a new SSID name, Autoscan to Manual 1, 6 or 11. Auto 20/40Mhz and If your devices can support this, use WPA2/AES only, if some don't support AES only, then set Mixed TPIK and AES.
Check to see if you have Short GI and HT 20/40 Co-existence under Advanced/Advanced Wireless. Try disabling them as a test for both.