nl80211: Remove dead code
The EAPOL packet socket is not bound to a specific ifindex, so no need to setup the address for a bind() call that is not here anyway.
This commit is contained in:
parent
c043aadc40
commit
6143f11705
1 changed files with 0 additions and 7 deletions
|
@ -2433,7 +2433,6 @@ static int i802_ht_scan(struct i802_driver_data *drv)
|
||||||
static int i802_init_sockets(struct i802_driver_data *drv, const u8 *bssid)
|
static int i802_init_sockets(struct i802_driver_data *drv, const u8 *bssid)
|
||||||
{
|
{
|
||||||
struct ifreq ifr;
|
struct ifreq ifr;
|
||||||
struct sockaddr_ll addr;
|
|
||||||
|
|
||||||
drv->ioctl_sock = socket(PF_INET, SOCK_DGRAM, 0);
|
drv->ioctl_sock = socket(PF_INET, SOCK_DGRAM, 0);
|
||||||
if (drv->ioctl_sock < 0) {
|
if (drv->ioctl_sock < 0) {
|
||||||
|
@ -2520,12 +2519,6 @@ static int i802_init_sockets(struct i802_driver_data *drv, const u8 *bssid)
|
||||||
if (hostapd_set_iface_flags(drv, drv->iface, 1))
|
if (hostapd_set_iface_flags(drv, drv->iface, 1))
|
||||||
goto fail1;
|
goto fail1;
|
||||||
|
|
||||||
memset(&addr, 0, sizeof(addr));
|
|
||||||
addr.sll_family = AF_PACKET;
|
|
||||||
addr.sll_ifindex = ifr.ifr_ifindex;
|
|
||||||
wpa_printf(MSG_DEBUG, "Opening raw packet socket for ifindex %d",
|
|
||||||
addr.sll_ifindex);
|
|
||||||
|
|
||||||
drv->eapol_sock = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_PAE));
|
drv->eapol_sock = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_PAE));
|
||||||
if (drv->eapol_sock < 0) {
|
if (drv->eapol_sock < 0) {
|
||||||
perror("socket(PF_PACKET, SOCK_DGRAM, ETH_P_PAE)");
|
perror("socket(PF_PACKET, SOCK_DGRAM, ETH_P_PAE)");
|
||||||
|
|
Loading…
Reference in a new issue