forked from Minki/linux
qtnfmac: simplify notation
Shorten line lengths using a more compact notation to access mac info. Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
6d89265d78
commit
d62b622ca4
@ -955,6 +955,7 @@ qtnf_wiphy_setup_if_comb(struct wiphy *wiphy, struct qtnf_mac_info *mac_info)
|
||||
int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac)
|
||||
{
|
||||
struct wiphy *wiphy = priv_to_wiphy(mac);
|
||||
struct qtnf_mac_info *macinfo = &mac->macinfo;
|
||||
int ret;
|
||||
|
||||
if (!wiphy) {
|
||||
@ -962,20 +963,20 @@ int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac)
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
wiphy->frag_threshold = mac->macinfo.frag_thr;
|
||||
wiphy->rts_threshold = mac->macinfo.rts_thr;
|
||||
wiphy->retry_short = mac->macinfo.sretry_limit;
|
||||
wiphy->retry_long = mac->macinfo.lretry_limit;
|
||||
wiphy->coverage_class = mac->macinfo.coverage_class;
|
||||
wiphy->frag_threshold = macinfo->frag_thr;
|
||||
wiphy->rts_threshold = macinfo->rts_thr;
|
||||
wiphy->retry_short = macinfo->sretry_limit;
|
||||
wiphy->retry_long = macinfo->lretry_limit;
|
||||
wiphy->coverage_class = macinfo->coverage_class;
|
||||
|
||||
wiphy->max_scan_ssids = QTNF_MAX_SSID_LIST_LENGTH;
|
||||
wiphy->max_scan_ie_len = QTNF_MAX_VSIE_LEN;
|
||||
wiphy->mgmt_stypes = qtnf_mgmt_stypes;
|
||||
wiphy->max_remain_on_channel_duration = 5000;
|
||||
wiphy->max_acl_mac_addrs = mac->macinfo.max_acl_mac_addrs;
|
||||
wiphy->max_acl_mac_addrs = macinfo->max_acl_mac_addrs;
|
||||
wiphy->max_num_csa_counters = 2;
|
||||
|
||||
ret = qtnf_wiphy_setup_if_comb(wiphy, &mac->macinfo);
|
||||
ret = qtnf_wiphy_setup_if_comb(wiphy, macinfo);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
@ -994,12 +995,12 @@ int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac)
|
||||
wiphy->probe_resp_offload = NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS |
|
||||
NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2;
|
||||
|
||||
wiphy->available_antennas_tx = mac->macinfo.num_tx_chain;
|
||||
wiphy->available_antennas_rx = mac->macinfo.num_rx_chain;
|
||||
wiphy->available_antennas_tx = macinfo->num_tx_chain;
|
||||
wiphy->available_antennas_rx = macinfo->num_rx_chain;
|
||||
|
||||
wiphy->max_ap_assoc_sta = mac->macinfo.max_ap_assoc_sta;
|
||||
wiphy->ht_capa_mod_mask = &mac->macinfo.ht_cap_mod_mask;
|
||||
wiphy->vht_capa_mod_mask = &mac->macinfo.vht_cap_mod_mask;
|
||||
wiphy->max_ap_assoc_sta = macinfo->max_ap_assoc_sta;
|
||||
wiphy->ht_capa_mod_mask = &macinfo->ht_cap_mod_mask;
|
||||
wiphy->vht_capa_mod_mask = &macinfo->vht_cap_mod_mask;
|
||||
|
||||
ether_addr_copy(wiphy->perm_addr, mac->macaddr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user