tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: new errno ?



On Friday 06 July 2018 15:59:12 Jason Thorpe wrote:
> Anyway... in what situations is this absurd error code used in the 802.11 code?  EFAULT seems wrong because it means something very specific. 

The code is in ieee80211_output.c and says:

	/* locate destination node */
	switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) {
	case IEEE80211_FC1_DIR_NODS:
	case IEEE80211_FC1_DIR_FROMDS:
		ni = ieee80211_find_txnode(vap, wh->i_addr1);
		break;
	case IEEE80211_FC1_DIR_TODS:
	case IEEE80211_FC1_DIR_DSTODS:
		ni = ieee80211_find_txnode(vap, wh->i_addr3);
		break;
	default:
		senderr(EDOOFUS);
	}

I agree,  EINVAL sounds closer.   Thanks.

--Phil


Home | Main Index | Thread Index | Old Index