aboutsummaryrefslogtreecommitdiffstats
path: root/package/carl9170/patches/120-compile_fix.patch
blob: 00f0fba84701024803e0c5e2da159964e73b57fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/drivers/net/wireless/ath/carl9170/fw.c
+++ b/drivers/net/wireless/ath/carl9170/fw.c
@@ -185,8 +185,10 @@ static int ar9170_fw_check(struct ar9170
 	if (SUPP(CARL9170FW_WLANTX_CAB))
 		ar->hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP);
 
+#ifdef CONFIG_CARL9170_WPS_BUTTON
 	if (!SUPP(CARL9170FW_GPIO_INTERRUPT))
 		ar->has_wps_button = false;
+#endif
 
 #undef SUPPORTED
 	return 0;