mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] ieee80211: small ERP handling additions
This adds a flag to the ieee80211_network structure which indicates whether the stored erp_value is valid (a check against 0 is not enough, since an ERP of 0 is valid and very meaningful). I also added the ERP IE bit-definitions to ieee80211.h. This is needed by some upcoming softmac patches. Signed-off-by: Daniel Drake <[email protected]> Acked-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
eab411f1e8
commit
d8e2be90d3
2 changed files with 8 additions and 0 deletions
|
|
@ -1166,6 +1166,7 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element
|
|||
|
||||
case MFIE_TYPE_ERP_INFO:
|
||||
network->erp_value = info_element->data[0];
|
||||
network->flags |= NETWORK_HAS_ERP_VALUE;
|
||||
IEEE80211_DEBUG_MGMT("MFIE_TYPE_ERP_SET: %d\n",
|
||||
network->erp_value);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue