Use a struct ieee80211_mgmt in OnAssocRsp to read elements of the association response message. This should be easier than parsing the message manually. v2: - rewrite the commit messages to say to more clearly why (in my opinion) the patches change the code for the better Martin Kaiser (5): staging: r8188eu: replace a get_da call staging: r8188eu: read status_code from struct ieee80211_mgmt staging: r8188eu: read capability info from struct ieee80211_mgmt staging: r8188eu: read aid from struct ieee80211_mgmt staging: r8188eu: simplify the calculation of ie start offset drivers/staging/r8188eu/core/rtw_mlme_ext.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) -- 2.30.2