nl80211.c (17b942478643c5a90c06d978479bd326040bfa19) | nl80211.c (ba6fbacf9c073effaedf0c52fe7e52e2baf67725) |
---|---|
1/* 2 * This is the new netlink-based wireless configuration interface. 3 * 4 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 5 * Copyright 2013-2014 Intel Mobile Communications GmbH 6 * Copyright 2015-2016 Intel Deutschland GmbH 7 */ 8 --- 8044 unchanged lines hidden (view full) --- 8053 connect.mfp = nla_get_u32(info->attrs[NL80211_ATTR_USE_MFP]); 8054 if (connect.mfp != NL80211_MFP_REQUIRED && 8055 connect.mfp != NL80211_MFP_NO) 8056 return -EINVAL; 8057 } else { 8058 connect.mfp = NL80211_MFP_NO; 8059 } 8060 | 1/* 2 * This is the new netlink-based wireless configuration interface. 3 * 4 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 5 * Copyright 2013-2014 Intel Mobile Communications GmbH 6 * Copyright 2015-2016 Intel Deutschland GmbH 7 */ 8 --- 8044 unchanged lines hidden (view full) --- 8053 connect.mfp = nla_get_u32(info->attrs[NL80211_ATTR_USE_MFP]); 8054 if (connect.mfp != NL80211_MFP_REQUIRED && 8055 connect.mfp != NL80211_MFP_NO) 8056 return -EINVAL; 8057 } else { 8058 connect.mfp = NL80211_MFP_NO; 8059 } 8060 |
8061 if (info->attrs[NL80211_ATTR_PREV_BSSID]) 8062 connect.prev_bssid = 8063 nla_data(info->attrs[NL80211_ATTR_PREV_BSSID]); 8064 |
|
8061 if (info->attrs[NL80211_ATTR_WIPHY_FREQ]) { 8062 connect.channel = nl80211_get_valid_chan( 8063 wiphy, info->attrs[NL80211_ATTR_WIPHY_FREQ]); 8064 if (!connect.channel) 8065 return -EINVAL; 8066 } else if (info->attrs[NL80211_ATTR_WIPHY_FREQ_HINT]) { 8067 connect.channel_hint = nl80211_get_valid_chan( 8068 wiphy, info->attrs[NL80211_ATTR_WIPHY_FREQ_HINT]); --- 5506 unchanged lines hidden --- | 8065 if (info->attrs[NL80211_ATTR_WIPHY_FREQ]) { 8066 connect.channel = nl80211_get_valid_chan( 8067 wiphy, info->attrs[NL80211_ATTR_WIPHY_FREQ]); 8068 if (!connect.channel) 8069 return -EINVAL; 8070 } else if (info->attrs[NL80211_ATTR_WIPHY_FREQ_HINT]) { 8071 connect.channel_hint = nl80211_get_valid_chan( 8072 wiphy, info->attrs[NL80211_ATTR_WIPHY_FREQ_HINT]); --- 5506 unchanged lines hidden --- |