Skip to content

Instantly share code, notes, and snippets.

@GustavoARSilva
Created April 29, 2020 23:22
Show Gist options
  • Select an option

  • Save GustavoARSilva/1eedbe9f4250dc53354970aa6edfc89d to your computer and use it in GitHub Desktop.

Select an option

Save GustavoARSilva/1eedbe9f4250dc53354970aa6edfc89d to your computer and use it in GitHub Desktop.
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c
index 52375f3e430a..6fbab3459811 100644
--- a/drivers/net/wireless/rndis_wlan.c
+++ b/drivers/net/wireless/rndis_wlan.c
@@ -322,7 +322,7 @@ struct ndis_80211_capability {
__le32 version;
__le32 num_pmkids;
__le32 num_auth_encr_pair;
- struct ndis_80211_auth_encr_pair auth_encr_pair[0];
+ struct ndis_80211_auth_encr_pair auth_encr_pair[];
} __packed;
struct ndis_80211_bssid_info {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment