carl9170: update to version 1.0.1.1 and fix a compile error
[openwrt-10.03/.git] / package / carl9170 / patches / 120-compile_fix.patch
1 --- a/drivers/net/wireless/ath/carl9170/fw.c
2 +++ b/drivers/net/wireless/ath/carl9170/fw.c
3 @@ -185,8 +185,10 @@ static int ar9170_fw_check(struct ar9170
4         if (SUPP(CARL9170FW_WLANTX_CAB))
5                 ar->hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP);
6  
7 +#ifdef CONFIG_CARL9170_WPS_BUTTON
8         if (!SUPP(CARL9170FW_GPIO_INTERRUPT))
9                 ar->has_wps_button = false;
10 +#endif
11  
12  #undef SUPPORTED
13         return 0;