only return the negotiated ampdu density for sta mode

This commit is contained in:
Sam Leffler 2008-09-06 17:43:47 +00:00
parent c54fbb33b9
commit 900de99561

View File

@ -995,7 +995,8 @@ ieee80211_ioctl_get80211(struct ieee80211vap *vap, u_long cmd,
ireq->i_val = vap->iv_ampdu_limit;
break;
case IEEE80211_IOC_AMPDU_DENSITY:
if (vap->iv_state == IEEE80211_S_RUN)
if (vap->iv_opmode == IEEE80211_M_STA &&
vap->iv_state == IEEE80211_S_RUN)
ireq->i_val = MS(vap->iv_bss->ni_htparam,
IEEE80211_HTCAP_MPDUDENSITY);
else