+@@ -180,7 +186,8 @@
+ u_int32_t reset;
+ u_int32_t enable;
+
+- if ((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ) {
++ if (((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ) ||
++ ((devid & AR5315_REV_MAJ_M) == AR5317_REV_MAJ)) {
+ u_int32_t reg;
+ u_int32_t *en = (u_int32_t *) AR5315_AHB_ARB_CTL;
+
+@@ -241,7 +248,8 @@
+ ahb_disable_wmac(u_int16_t devid, u_int16_t wlanNum)
+ {
+ u_int32_t enable;
+- if ((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ) {
++ if (((devid & AR5315_REV_MAJ_M) == AR5315_REV_MAJ) ||
++ ((devid & AR5315_REV_MAJ_M) == AR5317_REV_MAJ)) {
+ u_int32_t *en = (u_int32_t *) AR5315_AHB_ARB_CTL;
+
+ KASSERT(wlanNum == 0, ("invalid wlan # %d", wlanNum) );
+@@ -295,7 +303,7 @@